Skip to content

Update React to 17.X #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/src/Screens/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default () => (
<h1 css={titleRule}>React Router Transition</h1>
<div css={bodyRule}>
<span>Painless transitions built for react-router, </span>
<span>powered by react-motion</span>
<span>powered by @serprex/react-motion</span>
</div>
<div css={buttonsRule}>
<Link css={[buttonRule, primaryButtonRule]} to="/getting-started">
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import PropTypes from 'prop-types';

import { Route, Switch, matchPath, useLocation } from 'react-router-dom';

import TransitionMotion from 'react-motion/lib/TransitionMotion';
import spring from 'react-motion/lib/spring';
import TransitionMotion from '@serprex/react-motion/lib/TransitionMotion';
import spring from '@serprex/react-motion/lib/spring';

// Helpers

Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@
},
"homepage": "https://github.com/maisano/react-router-transition#readme",
"peerDependencies": {
"react": "^16.8.0",
"react-dom": "^16.8.0",
"react-router-dom": "^5.0.0"
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-router-dom": "^5.2.0"
},
"dependencies": {
"prop-types": "^15.7.2",
"react-motion": "^0.5.2"
"@serprex/react-motion": "^0.6.1",
"prop-types": "^15.7.2"
},
"devDependencies": {
"@babel/cli": "^7.6.2",
"@babel/core": "^7.6.2",
"@babel/preset-env": "^7.6.2",
"@babel/preset-react": "^7.0.0",
"prettier": "^1.18.2",
"react": "^16.10.2",
"react-dom": "^16.10.2",
"react-router-dom": "^5.1.2"
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-router-dom": "^5.2.0"
}
}