Page's files Setup
- Open pages folder and create three files
Home.jsx,Profile.jsx,CreateCampaign.jsxandCampaignDetails.jsxand typerafcein each file and presstabto get the basicReactArrowFunctionComponentExporttemplate. - Create a file
index.jsin the pages folder and export all the pages from there.
export { default as Home } from './Home';
export { default as Profile } from './Profile';
export { default as CreateCampaign } from './CreateCampaign';
export { default as CampaignDetails} from './CampaignDetails';- Now go to
App.jsxand import all the pages fromindex.jsfile.
import { Home, Profile, CreateCampaign, CampaignDetails } from './pages';