1 min readAug 10, 2020
Hi, and thanks for your article. Refering to the React useState documents, you can update state without passing in a function. Passing in a new value, or incrementing a value as useState parameter is allowed as per the documentation.