diff --git a/src/Bootstrap.test.tsx b/src/Bootstrap.test.tsx index 05fde7f..9c33f9b 100644 --- a/src/Bootstrap.test.tsx +++ b/src/Bootstrap.test.tsx @@ -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 = () => ( + + + +) + test('renders', () => { - render() + render() }) diff --git a/src/Bootstrap.tsx b/src/Bootstrap.tsx index e0f1651..d4b4a10 100644 --- a/src/Bootstrap.tsx +++ b/src/Bootstrap.tsx @@ -1,7 +1,16 @@ import React from 'react' +import { Routes, Route } from 'react-router-dom' + +import { Home } from './pages/Home/' function Bootstrap() { - return
+ return ( +
+ + } /> + +
+ ) } export default Bootstrap diff --git a/src/index.tsx b/src/index.tsx index aaa1ebf..ec5ea6d 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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' diff --git a/src/pages/Home/Home.tsx b/src/pages/Home/Home.tsx new file mode 100644 index 0000000..fd4acb3 --- /dev/null +++ b/src/pages/Home/Home.tsx @@ -0,0 +1,5 @@ +import React from 'react' + +export function Home() { + return
+} diff --git a/src/pages/Home/index.ts b/src/pages/Home/index.ts new file mode 100644 index 0000000..ccb93a9 --- /dev/null +++ b/src/pages/Home/index.ts @@ -0,0 +1 @@ +export * from './Home'