Connecting MainForm to App.js

To render our MainForm, we import the MainForm component in App.js and add it.

Replace the contents of App.js by:

import MainForm from "./Components/MainForm";

function App() {
  return <MainForm />;
}

export default App;

Now run npm start or yarn start in your terminal and see the form on localhost:3000/ in your browser.

 

You have succesfully completed this lab! 😄

Discussion

2

0