What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-08-29 11:11:01
react usememo
/* A common use case is to access a child imperatively: */ function TextInputWithFocusButton() { const inputEl = useRef(null); const onButtonClick = () => { // `current` points to the mounted text input element inputEl.current.focus(); ... Add solution