Use React's useState Hook to create a basic toggle component

Use React's useState Hook to create a basic toggle component

J.C. Hiatt

6 лет назад

5,485 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@irasanchez1265
@irasanchez1265 - 21.07.2019 23:11

Thanks for the help.

Ответить
@deivarask.4515
@deivarask.4515 - 13.02.2020 16:06

Just a common practise is to use 'set' naming as const [toggle, setToggle] = useState(false) . Great video tho ;)

Ответить
@lofiwithshamique
@lofiwithshamique - 30.06.2022 01:50

Thanks this was super helpful!

Ответить