Skip to content

Commit

Permalink
fully removed react-router-component
Browse files Browse the repository at this point in the history
  • Loading branch information
lmammino committed Apr 4, 2020
1 parent f77d193 commit bcfc8a3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 146 deletions.
157 changes: 14 additions & 143 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"fastify-static": "^2.6.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-router-component": "^0.40.0",
"react-router-dom": "^5.1.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/pages/fourOhFourPage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import react from 'react'
import Router from 'react-router-component'
import { Link } from 'react-router-dom'
import { Header } from '../components/header.js'
import { Footer } from '../components/footer.js'
const h = react.createElement
Expand All @@ -17,7 +17,7 @@ export class FourOhFourPage extends react.Component {
h('div', { className: 'text-center' },
h('h2', null, '404'),
h('h3', null, this.props.error || 'Page not found'),
h(Router.Link, { href: '/' }, 'Go back to the home page')
h(Link, { to: '/' }, 'Go back to the home page')
),
h(Footer)
)
Expand Down

0 comments on commit bcfc8a3

Please sign in to comment.