React.useState là một Hook trong ReactJS được sử dụng để xử lý state trong các function component với cú pháp
const [state, setState] = React.useState(param)
state: giá trị của state setState: là một hàm được dùng để truyền giá trị vào state param: là một giá trị khởi tạo cho state
Last updated 5 years ago