-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
anish
authored and
anish
committed
Oct 9, 2017
1 parent
41e52dc
commit 739620e
Showing
4 changed files
with
9 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,102 +1,18 @@ | ||
import React from 'react' | ||
|
||
import styles from '../css/Home' | ||
|
||
const Home = () => | ||
<div className={styles.home}> | ||
<h1>HOME</h1> | ||
|
||
<h2> | ||
NOTE: The top set of links are real links made like this: | ||
</h2> | ||
|
||
<span style={{ color: 'rgb(200,200,200)', marginTop: 20 }}> | ||
HREF STRING: | ||
</span> | ||
<span>{"<Link to='/list/db-graphql'>DB & GRAPHQL</Link>"}</span> | ||
|
||
<span style={{ color: 'rgb(200,200,200)', marginTop: 20 }}> | ||
PATH SEGMENTS: | ||
</span> | ||
<span>{"<Link to={['list', 'react-redux']}>REACT & REDUX</Link>"}</span> | ||
|
||
<span style={{ color: 'rgb(200,200,200)', marginTop: 20 }}>ACTION:</span> | ||
<span> | ||
{"<Link to={{ type: 'LIST', payload: {slug: 'fp'} }}>FP</Link>"} | ||
</span> | ||
|
||
<h1 style={{ margin: 20 }}>EVENT HANDLERS DISPATCH ACTION</h1> | ||
|
||
<pre> | ||
{` | ||
onClick: () => dispatch({ | ||
type: 'LIST', | ||
payload: { category: 'react-redux' } | ||
}) | ||
`} | ||
</pre> | ||
|
||
<div> | ||
<span style={{ color: '#c5af8f', display: 'inline' }}>DIRECTIONS: </span> | ||
<span className={styles.directions}> | ||
{`inspect the sidebar tabs to see the top set are real <a> tag links and the | ||
bottom set not, yet the address bar changes for both. The decision is up to you. | ||
When using the <Link /> component, if you provide an action as the \`href\` prop, you never | ||
need to worry if you change the static path segments (e.g: \`/list\`) in the routes passed | ||
to \`connectRoutes\`. ALSO: DON'T FORGET TO USE THE BROWSER BACK/NEXT BUTTONS TO SEE THAT WORKING TOO!`} | ||
</span> | ||
<img | ||
alt='gnome' | ||
src='https://people.gnome.org/~engagement/logos/GnomeLogoHorizontal.svg' | ||
/> | ||
</div> | ||
<div> | ||
<h2> Welcome to GNOME blockchains demo </h2> | ||
</div> | ||
|
||
<h1 style={{ marginTop: 25 }}>LINKS ABOUT REDUX-FIRST ROUTER:</h1> | ||
|
||
{'> '} | ||
<a | ||
className={styles.articleLinks} | ||
target='_blank' | ||
href='https://medium.com/faceyspacey/server-render-like-a-pro-w-redux-first-router-in-10-steps-b27dd93859de' | ||
rel='noopener noreferrer' | ||
> | ||
Server-Render Like A Pro in 10 Steps /w Redux-First Router 🚀 | ||
</a> | ||
|
||
<br /> | ||
<br /> | ||
|
||
{'> '} | ||
<a | ||
className={styles.articleLinks} | ||
target='_blank' | ||
href='https://medium.com/faceyspacey/redux-first-router-lookin-sexy-on-code-sandbox-d9d9bea15053' | ||
rel='noopener noreferrer' | ||
> | ||
Things To Pay Attention To In This Demo | ||
</a> | ||
|
||
<br /> | ||
<br /> | ||
|
||
{'> '} | ||
<a | ||
className={styles.articleLinks} | ||
target='_blank' | ||
href='https://medium.com/faceyspacey/pre-release-redux-first-router-a-step-beyond-redux-little-router-cd2716576aea' | ||
rel='noopener noreferrer' | ||
> | ||
Pre Release: Redux-First Router — A Step Beyond Redux-Little-Router | ||
</a> | ||
|
||
<br /> | ||
<br /> | ||
|
||
{'> '} | ||
<a | ||
className={styles.articleLinks} | ||
target='_blank' | ||
href='https://medium.com/faceyspacey/redux-first-router-data-fetching-solving-the-80-use-case-for-async-middleware-14529606c262' | ||
rel='noopener noreferrer' | ||
> | ||
Redux-First Router data-fetching: solving the 80% use case for async | ||
Middleware | ||
</a> | ||
</div> | ||
|
||
export default Home |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters