Update and housekeeping
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
---
|
||||
title: PasswordRevealer
|
||||
title: PasswordRevealer
|
||||
tags: input,state,beginner
|
||||
---
|
||||
|
||||
Renders a password input field with a reveal button.
|
||||
|
||||
* Use the `React.useState()` hook to create the `shown` state variable and set its value to `false`.
|
||||
* Use a`<div>` to wrap both the`<input>` and the `<button>` element that toggles the type of the input field between `"text"` and `"password"`.
|
||||
- Use the `React.useState()` hook to create the `shown` state variable and set its value to `false`.
|
||||
- Use a`<div>` to wrap both the`<input>` and the `<button>` element that toggles the type of the input field between `"text"` and `"password"`.
|
||||
|
||||
```jsx
|
||||
function PasswordRevealer({ value }) {
|
||||
|
||||
Reference in New Issue
Block a user