I am new in react. I want to use form stepper in my project. I found one library but in that library using class components. I am little confuse convert class components to
Functional components do not use state like a class. You can use the useState method with a functional component though. But to answer your question.
class MyClassComponent extends Component {
render() {
return(
// code
)
}
}
export default MyClassComponent;
Here is a functional component
function MyFunctionalComponent() {
return(
//code
)
}
export default MyFunctionalComponent;