--- title: Show/hide password toggle tags: components,input,state author: chalarangelo cover: thread firstSeen: 2018-10-18T20:04:22+03:00 lastUpdated: 2020-11-25T20:46:35+02:00 --- Renders a password input field with a reveal button. - Use the `useState()` hook to create the `shown` state variable and set its value to `false`. - When the ` ); }; ``` ```jsx ReactDOM.createRoot(document.getElementById('root')).render( ); ```