I’m trying to practice reactjs and how can I convert this class component to a functional component?
handleChange = (e) => {
const { name, value } = e.target;
this.setState( {
[name] :value
})
};
So far, I could only do this and I’m quite lost when it comes to the this.setState
const handleChange = (e) => {
const { name, value } = e.target;
};