Skip to content

Commit d12402c

Browse files
committed
fix($deps): upgrade react-universal-component, update readme, etc
1 parent 19fec48 commit d12402c

File tree

5 files changed

+31
-16
lines changed

5 files changed

+31
-16
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77

88
This demo specializes in SSR and the sort of things like redirecting and authentication you will do on the server.
99

10-
For the client-only codesandbox you can start tinkering with in one more click, checkout:
11-
12-
**https://codesandbox.io/s/github/faceyspacey/redux-first-router-codesandbox**
13-
14-
And for some tips of what to do in both the sandbox and this repo, check the article about it:
15-
https://medium.com/faceyspacey/redux-first-router-lookin-sexy-on-code-sandbox-d9d9bea15053
1610

1711

1812
![redux-first-router-demo screenshot](./screenshot.png)
@@ -51,9 +45,9 @@ I comment throughout the code various things you can try. Look out for comments
5145

5246
For example, there are simple values like the `jwToken` you can toggle to get access to the restricted *admin* area. That showcases a key feature: ***authentication filtering.***
5347

54-
In general, this Demo is all about SSR. It shows how to use the `onBeforeChange` to properly authenticate user's and routes using *JSON Web Tokens*. And of course data-fetching via `thunks` is central to it all. There's even a real API.
48+
In general, this Demo is all about SSR. It shows how to use the `onBeforeChange` to properly authenticate user's and routes using *JSON Web Tokens*. And of course data-fetching via `thunks` is central to it all. **There's even a real API.**
5549

56-
Lastly, the [***server/configureStore.js***](./server/configureStore.js) file is the absolute most important file of the demo. It essentially brings your ***routing-aware Redux store*** full circle in a dead simple yet flexible manner. It works in combination with [***src/routesMap.js***](./src/routesMap.js). Study those and your redux routing dreams have come true 😀
50+
Lastly, the [***server/configureStore.js***](./server/configureStore.js) file is the absolute most important file of the demo. It essentially brings your ***routing-aware Redux store*** full circle by bringing it server-side in a dead simple yet flexible manner. It works in combination with [***src/routesMap.js***](./src/routesMap.js). Study those and your redux routing dreams have come true 😀
5751

5852
> As a bonus, it comes with code-splitting thanks to [react-universal-component](https://github.com/faceyspacey/react-universal-component). This setup makes splitting stupid-easy. In the future, ***routing-aware pre-fetching*** will be added to the mix, so the users never know you're only serving partial parts of your app 🚀
5953

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"react": "^15.4.2",
2929
"react-dom": "^15.4.2",
3030
"react-redux": "^5.0.5",
31-
"react-universal-component": "^2.4.0",
31+
"react-universal-component": "^2.5.0",
3232
"redux": "^3.7.0",
3333
"redux-devtools-extension": "^2.13.2",
3434
"redux-first-router": "^1.9.15",

src/components/Home.js

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,29 @@ onClick: () => dispatch({
4646
</span>
4747
</div>
4848

49-
<h1 style={{ marginTop: 25 }}>ARTICLES ABOUT REDUX-FIRST ROUTER:</h1>
49+
<h1 style={{ marginTop: 25 }}>LINKS ABOUT REDUX-FIRST ROUTER:</h1>
50+
51+
{'> '}
52+
<a
53+
className={styles.articleLinks}
54+
target='_blank'
55+
href='https://medium.com/faceyspacey/server-render-like-a-pro-w-redux-first-router-in-10-steps-b27dd93859de'
56+
rel='noopener noreferrer'
57+
>
58+
Server-Render Like A Pro in 10 Steps /w Redux-First Router 🚀
59+
</a>
60+
61+
<br />
62+
<br />
63+
5064
{'> '}
5165
<a
5266
className={styles.articleLinks}
5367
target='_blank'
5468
href='https://medium.com/faceyspacey/redux-first-router-lookin-sexy-on-code-sandbox-d9d9bea15053'
5569
rel='noopener noreferrer'
5670
>
57-
THINGS TO SHOULD PAY ATTENTION TO IN THIS DEMO
71+
Things To Pay Attention To In This Demo
5872
</a>
5973

6074
<br />
@@ -67,7 +81,7 @@ onClick: () => dispatch({
6781
href='https://medium.com/faceyspacey/pre-release-redux-first-router-a-step-beyond-redux-little-router-cd2716576aea'
6882
rel='noopener noreferrer'
6983
>
70-
WHY RFR IS THE ANSWER TO ROUTING FOR REDUX
84+
Pre Release: Redux-First Router — A Step Beyond Redux-Little-Router
7185
</a>
7286

7387
<br />
@@ -80,7 +94,8 @@ onClick: () => dispatch({
8094
href='https://medium.com/faceyspacey/redux-first-router-data-fetching-solving-the-80-use-case-for-async-middleware-14529606c262'
8195
rel='noopener noreferrer'
8296
>
83-
DATA-FETCHING + SIMPLER REDUX MIDDLEWARE /W RFR
97+
Redux-First Router data-fetching: solving the 80% use case for async
98+
Middleware
8499
</a>
85100
</div>
86101

src/css/Home.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,10 @@ span.directions {
5050
color: white;
5151
-webkit-font-smoothing: antialiased;
5252
font-family: Roboto, sans-serif;
53+
text-decoration: none;
54+
}
55+
56+
.articleLinks:hover {
57+
color: purple;
5358
text-decoration: underline;
5459
}

yarn.lock

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4611,11 +4611,12 @@ react-transition-group@^1.2.0:
46114611
prop-types "^15.5.6"
46124612
warning "^3.0.0"
46134613

4614-
react-universal-component@^2.4.0:
4615-
version "2.4.0"
4616-
resolved "https://registry.yarnpkg.com/react-universal-component/-/react-universal-component-2.4.0.tgz#27c927e4e72645f724ca4b086240c4a6f331a426"
4614+
react-universal-component@^2.5.0:
4615+
version "2.5.0"
4616+
resolved "https://registry.yarnpkg.com/react-universal-component/-/react-universal-component-2.5.0.tgz#ffa044ab1188ffe3880d63e0c09d564926e27624"
46174617
dependencies:
46184618
hoist-non-react-statics "^2.2.1"
4619+
prop-types "^15.5.10"
46194620

46204621
react@^15.4.2:
46214622
version "15.4.2"

0 commit comments

Comments
 (0)