DEV Community

Cover image for useState()
ShutSasha
ShutSasha

Posted on

useState()

This hook helps for developers to control the state of react component (locally just in component)

syntax looks smth like that
ts
const [value, setValue] = useState(initialValue)

Top comments (0)