Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

setstate in react

Functional Component
const [counter, setCounter] = useState(0);

setCouter(counter + 1);
 
PREVIOUS NEXT
Tagged: #setstate #react
ADD COMMENT
Topic
Name
1+9 =