Home
About
Contact
HOME
HTML
CSS
JavaScript
C
C++
Java
Python
MySQL
Tips & Tricks
Web Design
Home
react
set counter in react
set counter in react
Kahnu044
May 08, 2022
const
[count, setCount] = useState(
0
);
<
p
>
You clicked
{
count
}
times
</
p
>
<
button
onClick
=
{
()
=>
setCount(count +
1
)
}
>
Click me
</
button
>
Post a Comment
0 Comments
Search This Blog
Labels
Php
41
Web Design
37
CSS
23
HTML
22
Javascript
15
Tips & Tricks
15
MySQL
9
Java
8
Python
6
linux
6
Other
4
git
3
kali linux
3
laravel
3
sailsjs
3
wordpress
3
cmd
2
cpanel
2
firebase
2
node
2
react
2
xampp
2
C
1
C++
1
Django
1
Jquery
1
apache2
1
cloudflare
1
codeigniter
1
domain
1
github
1
hosting
1
mysql stopped
1
postgres
1
sbi
1
ssh
1
tailwind
1
tech
1
ubuntu
1
ubutnu
1
wifi
1
windows
1
windows 10
1
windows 11
1
Popular Posts
0 Comments