useState and useEffect

10 min read 2 views Jane Editor
Share:

Manage state and side effects.

Hooks

const [count, setCount] = useState(0);

useEffect(() => {
  document.title = \`You clicked ${count} times\`;
}, [count]);

Resources & Downloads

Comments (0)

Comments are disabled for this site.