What can be passed as the initialState argument to useState() in React?
The initialState argument can be a value of any type or a pure initializer function that takes no arguments and returns the initial state. React calls an initializer function when initializing the component. For example, useState(0) passes the value directly, while useState(() => createInitialState()) uses an initializer function.