diff --git a/docs/guide/framework-examples/README.md b/docs/guide/framework-examples/README.md index 3772810e..89dc1163 100644 --- a/docs/guide/framework-examples/README.md +++ b/docs/guide/framework-examples/README.md @@ -211,7 +211,7 @@ const customMatcher = { const zxcvbn = new ZxcvbnFactory(options, customMatcher) const usePasswordStrength = (password: string) => { - const [result, setResult] = (useState < ZxcvbnResult) | (null > null) + const [result, setResult] = useState(null) // NOTE: useDeferredValue is React v18 only, for v17 or lower use debouncing const deferredPassword = useDeferredValue(password) @@ -223,7 +223,7 @@ const usePasswordStrength = (password: string) => { } export default function PasswordStrength() { - const [password, setPassword] = useState < string > '' + const [password, setPassword] = useState('') const result = usePasswordStrength(password) return (