What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-06 21:21:03
uselocation hook
import { useHistory } from "react-router-dom"; function HomeButton() { let history = useHistory(); function handleClick() { history.push("/home"); } return ( <button type="button" onClick={handleClick}&g... Add solution -
Javascript 2021-09-05 15:18:02
react get input value on button click functional component
const input = props => { let textInput = React.createRef(); function handleClick() { console.log(textInput.current.value); } return ( <div> <input ref={textInput} placeholder="Type a message..." /> <div onC... Add solution
Best helpers
Ranking is empty