Fran García-Linares
December 2017
1
2
3
4
5
Intro
React
Redux
Workshop info + exercises (this will take most of our time)
LAB4 ideas
Link to the workshop: here (more info later)
If you want:
Components
import React from 'react'
import { render } from 'react-dom'
import { BrowserRouter, Route } from 'react-router-dom'
import App from './app'
const AppWithRouter = () => (
<BrowserRouter basename="/part9">
<div>
<Route exact path="/" component={App} />
<Route path="/about" component={About} />
</div>
</BrowserRouter>
)
render(
<AppWithRouter />,
document.getElementById('react-root')
)
State management. Three simple principals:
It took a whole day, so might be worth checking this on your own if interested:
yarn install
yarn start
Let's do a few together! Join somebody or do it yourself
Solutions: here (don't cheat... yet)