I am learning react.js functional components and I came with the method useState(). Which gives an array in return [currentState, stateSetter]. Now
useState()
[currentState, stateSetter]