Courses
React Hooks Complete Guide
0/20selesai
Lesson 1•
15 min
Intro to Hooks
Deep dive into React Hooks.
Iklan
Intro to Hooks
Hooks allow you to use state and other React features without writing a class.
import { useState } from 'react'; function Counter() { const [count, setCount] = useState(0); return <button onClick={() => setCount(c => c + 1)}>{count}</button>; }
Iklan