From 088b247ad9a6f42d04fae8d62834b48c42f89dee Mon Sep 17 00:00:00 2001 From: komv8i Date: Thu, 7 Feb 2019 11:22:58 -0500 Subject: [PATCH] change password revealer component to hooks implementation --- snippets/PasswordRevealer.md | 38 +++++++++++++++--------------------- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/snippets/PasswordRevealer.md b/snippets/PasswordRevealer.md index 731f1030b..24263d8ff 100644 --- a/snippets/PasswordRevealer.md +++ b/snippets/PasswordRevealer.md @@ -8,30 +8,24 @@ In the`render()` method, use a`
` to wrap both the`` and the ` -
- ); - } + return ( +
+ {}} + /> + +
+ ); } ```