Skip to content

Commit 1eb2fc7

Browse files
committed
update smartStrictEqual
1 parent 87489e8 commit 1eb2fc7

37 files changed

+745
-301
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NODE_PATH="./src"

README.md

Lines changed: 4 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,6 @@
1-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
21

3-
## Available Scripts
42

5-
In the project directory, you can run:
6-
7-
### `yarn start`
8-
9-
Runs the app in the development mode.<br />
10-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11-
12-
The page will reload if you make edits.<br />
13-
You will also see any lint errors in the console.
14-
15-
### `yarn test`
16-
17-
Launches the test runner in the interactive watch mode.<br />
18-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19-
20-
### `yarn build`
21-
22-
Builds the app for production to the `build` folder.<br />
23-
It correctly bundles React in production mode and optimizes the build for the best performance.
24-
25-
The build is minified and the filenames include the hashes.<br />
26-
Your app is ready to be deployed!
27-
28-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29-
30-
### `yarn eject`
31-
32-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33-
34-
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
35-
36-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
37-
38-
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
39-
40-
## Learn More
41-
42-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
43-
44-
To learn React, check out the [React documentation](https://reactjs.org/).
3+
### References
4+
- [Navigation in React](https://dev.to/projectescape/programmatic-navigation-in-react-3p1l)
5+
- [Fake JSON API](https://jsonplaceholder.typicode.com/)
6+
- [React Patterns](https://reactpatterns.com/#container-component)

img/2020-02-25-11-21-07.png

227 KB
Loading

img/2020-02-26-02-05-24.png

197 KB
Loading

img/2020-02-26-11-30-30.png

611 KB
Loading

package.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,23 @@
1010
"@types/node": "^12.0.0",
1111
"@types/react": "^16.9.0",
1212
"@types/react-dom": "^16.9.0",
13+
"axios": "^0.19.2",
14+
"fast-deep-equal": "^3.1.1",
15+
"fast-shallow-equal": "^1.0.0",
16+
"fast-sort": "^2.1.1",
17+
"is-equal-shallow": "^0.1.3",
18+
"lodash": "^4.17.15",
19+
"normalizr": "^3.6.0",
1320
"react": "^16.12.0",
1421
"react-dom": "^16.12.0",
22+
"react-redux": "^7.2.0",
23+
"react-router-dom": "^5.1.2",
1524
"react-scripts": "3.4.0",
25+
"redux": "^4.0.5",
26+
"redux-devtools-extension": "^2.13.8",
27+
"redux-memoize": "^2.3.1",
28+
"redux-thunk": "^2.3.0",
29+
"reselect": "^4.0.0",
1630
"typescript": "~3.7.2"
1731
},
1832
"scripts": {
@@ -35,5 +49,17 @@
3549
"last 1 firefox version",
3650
"last 1 safari version"
3751
]
52+
},
53+
"devDependencies": {
54+
"@types/axios": "^0.14.0",
55+
"@types/lodash": "^4.14.149",
56+
"@types/normalizr": "^2.0.18",
57+
"@types/react-addons-shallow-compare": "^0.14.22",
58+
"@types/react-redux": "^7.1.7",
59+
"@types/react-router-dom": "^5.1.3",
60+
"@types/redux": "^3.6.0",
61+
"@types/redux-thunk": "^2.1.0",
62+
"@types/reselect": "^2.2.0",
63+
"@types/shallow-equals": "^1.0.0"
3864
}
3965
}

public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
1616
-->
1717
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
1819
<!--
1920
Notice the use of %PUBLIC_URL% in the tags above.
2021
It will be replaced with the URL of the `public` folder during the build.

src/App.css

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/App.test.tsx

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/App.tsx

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
11
import React from 'react';
2-
import logo from './logo.svg';
3-
import './App.css';
2+
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'
3+
import Root from 'components/Root';
4+
import Nav from 'components/Nav';
5+
import {Container} from 'components/Container';
6+
import {High} from 'components/HOC';
7+
8+
9+
const App = () =>
10+
<Router>
11+
<Nav />
12+
<div className="container">
13+
<Switch>
14+
<Route path='/' exact component={Root}/>
15+
<Route path='/container' exact component={Container}/>
16+
<Route path='/hoc' exact component={High}/>
17+
{/* <Route path='/renderprops' exact component={Root}/> */}
18+
</Switch>
19+
</div>
20+
</Router>
421

5-
function App() {
6-
return (
7-
<div className="App">
8-
<header className="App-header">
9-
<img src={logo} className="App-logo" alt="logo" />
10-
<p>
11-
Edit <code>src/App.tsx</code> and save to reload.
12-
</p>
13-
<a
14-
className="App-link"
15-
href="https://reactjs.org"
16-
target="_blank"
17-
rel="noopener noreferrer"
18-
>
19-
Learn React
20-
</a>
21-
</header>
22-
</div>
23-
);
24-
}
2522

2623
export default App;

0 commit comments

Comments
 (0)