How to manage state?

• useState

const [likes, setLikes] = useState(0)

setLikes(oldValue => oldValue + 1)

 

• useReducer

• some other library