--- title: PasswordRevealer tags: components,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`
` to wrap both the`` and the `
); } ``` ```jsx ReactDOM.render(, document.getElementById('root')); ```