import * as React from 'react'; import * as ReactDOM from 'react-dom'; import useDigitInput, {InputAttributes} from '../'; const DigitInputElement = React.forwardRef< HTMLInputElement, Omit & { autoFocus?: boolean; } >(({...props}, ref) => { return ( ); }); function App() { const [value, onChange] = React.useState(''); const digits = useDigitInput({ acceptedCharacters: /^[0-9]$/, length: 6, value, onChange, }); return (
        "{value}"
      
); } ReactDOM.render(, document.getElementById('root'));