React's useState(...) Hook 3 years ago 1 min read quick-tipReferenceOpen Source Software ConceptsReactReduxGetting Started Consider this line of code: //Source: https://reactjs.org/docs/hooks-state.html const [count, setCount] = useState(0);How the heck does this work? I threw together a quick test which is shown below.