diff --git a/README.md b/README.md index db90480..1c930c8 100644 --- a/README.md +++ b/README.md @@ -111,14 +111,39 @@ import { generate } from '@wcj/generate-password'; const Demo = () => { const [lowerCase, setLowerCase] = useState(true); - const opts = { lowerCase }; + const [upperCase, setUpperCase] = useState(true); + const [numeric, setNumeric] = useState(true); + const [special, setSpecial] = useState(true); + const [length, setLength] = useState(8); + const opts = { lowerCase, upperCase, numeric, special, length }; const [password, setPassword] = useState(generate(opts)); return (
{password}
- setLowerCase(!lowerCase)} /> + +
+ +
+ +
+ +
+
);