Skip to content

Commit

Permalink
Merge pull request #4 from eddimull/url_params
Browse files Browse the repository at this point in the history
color is appended on update and interpreted on launch
  • Loading branch information
tombohub authored Jan 15, 2022
2 parents 2cb754e + 015719f commit 8ca09e1
Show file tree
Hide file tree
Showing 4 changed files with 309 additions and 113,245 deletions.
11 changes: 8 additions & 3 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import React from "react";
import Main from "./components/Main";
import { BrowserRouter as Router, Route } from 'react-router-dom';

function App() {
return (
<>
<Main />
</>
<Router>
<>
<Route path='/:colorParam?'>
<Main />
</Route>
</>
</Router>
);
}

Expand Down
Loading

0 comments on commit 8ca09e1

Please sign in to comment.