Skip to content

Any method to use single useState()

What I wanted to know ,that is there any method / technique to replace many useState() hook in one hook. Like, Instead of writing the whole thing again and again , we define it any one of them. Answer You can create a state object and use it. Note: When you set state, make sure you merge with the previous

Show last 5 submitted data using only JS and HTML

I have a small question, I am yet a beginner with Java Script and I don’t have that much of knowledge with it. My question is: I need to create a fake donation form. The form contains fields where the user can write his data like his phone number, donate amount etc… and when the user hit submit hi…