The better way would be to use a Ref here rather than a id selector. https://github.com/okta/samples-js-react/blob/master/custom-login/src/Login.jsx#L47 Should be: ``` const divRef = useRef<HTMLDivElement | null>(null); widget.renderEl( { el: divRef.current } // etc ); <div ref={divRef} /> ```
The better way would be to use a Ref here rather than a id selector.
https://github.com/okta/samples-js-react/blob/master/custom-login/src/Login.jsx#L47
Should be: