-
-
Save DanyF-github/18f0bad6e1825c0cf20d852e0dee4f98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// client/src/pages/StudentPage.tsx | |
import React from 'react'; | |
import { StudentsList, StudentForm } from '../components/Students'; | |
const Students = () => { | |
return ( | |
<> | |
<h1>Students</h1> | |
<StudentForm /> | |
<StudentsList /> | |
</> | |
); | |
}; | |
export default Students; | |
// client/src/pages/index.tsx | |
... | |
import StudentPage from './StudentPage'; | |
function Pages() { | |
return ( | |
<Router> | |
<Navigation /> | |
<div id="roots" className="p-2"> | |
... | |
<Route path="/students" exact component={StudentPage} /> | |
</div> | |
</Router> | |
); | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment