useState
는 컴포넌트에 state 변수를 추가할 수 있게 해주는 React 훅입니다.
[something, setSomething]
using array destructuringinitialState
initialState
, it will be treated as an initializer function.This is
development-only
behavior and does not affect production.If your initializer function is pure (as it should be), this should not affect the behavior.