Webpack has been hard to learn primarily bc the documentation is poor and it seems I'm learning alongside most of the rest of the interenet. This is meant to be a collection of the useful learning resources I've managed to find:
- Gist snippets by Sebastian Markbage
- React Components Searchable database of React Components.
- React Tips & Best Practices 2/17/15
- Flux React Router Example some really good approaches to store organization, high order components, and simple abstractions by gaearon.
- Turbocharge your React application with shouldComponentUpdate and Immutable.js
- Introduction to Contexts in React.js
- The Future of React
Pattern Problem Solution Example
##Pattern - Chain of responsibility Problem: Prototype delegation
##Pattern - Plugin Problem:
The approach to styling borrows heavily from 2 design philosophies:
#itcss Styling is organized by specificity layers from widespread reach and applicabilty with variables, mixins, & resets to very targeted styling with targeted .classes & helpers (!important):
###let
keyword
let
facts
- Mozilla has had let for almost a decade. They completely replace
var
with it.
Explain the differences between var
& let
.
- var is function scope
- let is block scope
- let does not get hoisted
###Intro
I wanted to use a facade pattern
to provide a simple api for rendering job information in different forms using a Job
component that received two props:
- the job data
- how to render the job
import React from 'react'
import Job from 'JobComponent'
- configure fonts -> "Courier New", Courier, monospace !default
- Make SelectPokemon view in Views folder. Register view with Routes:
import React from 'react'
import { Route } from 'react-router'
import App from '../App'
import SelectPokemon from '../App/Views/SelectPokemon'
var routes = (
<Route handler={App} >
renderThings () {
return this.props.things.map(thing => {
return <li>{thing.name}</li>
})
},
render () {
This file contains hidden or 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
.Btn { | |
padding: .8em 1.5em; | |
color: white; | |
background-color: #EC87C0; | |
border: none; | |
} |
This file contains hidden or 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
render () { | |
return ( | |
<button className='Btn'> | |
Submit | |
</button> | |
) | |
} |
OlderNewer