feat: stand up Home page
This commit is contained in:
parent
90379b2c03
commit
be4947a80b
@ -1,8 +1,15 @@
|
||||
import React from 'react'
|
||||
import { render } from '@testing-library/react'
|
||||
import { MemoryRouter as Router } from 'react-router-dom'
|
||||
|
||||
import Bootstrap from './Bootstrap'
|
||||
|
||||
const StubBootstrap = () => (
|
||||
<Router>
|
||||
<Bootstrap />
|
||||
</Router>
|
||||
)
|
||||
|
||||
test('renders', () => {
|
||||
render(<Bootstrap />)
|
||||
render(<StubBootstrap />)
|
||||
})
|
||||
|
@ -1,7 +1,16 @@
|
||||
import React from 'react'
|
||||
import { Routes, Route } from 'react-router-dom'
|
||||
|
||||
import { Home } from './pages/Home/'
|
||||
|
||||
function Bootstrap() {
|
||||
return <div className="Chitchatter"></div>
|
||||
return (
|
||||
<div className="Chitchatter">
|
||||
<Routes>
|
||||
<Route path="/" element={<Home />} />
|
||||
</Routes>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Bootstrap
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom/client'
|
||||
import { HashRouter as Router } from 'react-router-dom'
|
||||
import { BrowserRouter as Router } from 'react-router-dom'
|
||||
|
||||
import * as serviceWorkerRegistration from './serviceWorkerRegistration'
|
||||
import './index.sass'
|
||||
|
5
src/pages/Home/Home.tsx
Normal file
5
src/pages/Home/Home.tsx
Normal file
@ -0,0 +1,5 @@
|
||||
import React from 'react'
|
||||
|
||||
export function Home() {
|
||||
return <div className="Home"></div>
|
||||
}
|
1
src/pages/Home/index.ts
Normal file
1
src/pages/Home/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from './Home'
|
Loading…
Reference in New Issue
Block a user