I hereby claim:
- I am kadmil on github.
- I am kadmil (https://keybase.io/kadmil) on keybase.
- I have a public key ASCJI0zBolUhj4THo0s8qlAiQAJpC7BoNAsKxP5ukpbX9go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import React from 'react' | |
export default (props) => (<div>{props.myText}</div>) |
export const request = type => `${type}_REQUEST` | |
export const response = type => `${type}_RESPONSE` | |
export const fail = type => `${type}_FAIL` |
export const apiMiddleware = store => next => action => { | |
//use destructuring to get apiCall and request from action object | |
const {apiCall, request, ...actualAction} = action | |
//ignore normal actions | |
if (!apiCall) { | |
return next(action) | |
} | |
//dispatch request_begin action — maybe we'd like some loaders |
.title { | |
border: 1px solid red; | |
} |
import React from 'react' | |
import Styles from './my-component.css' | |
export default _ => (<div className={Styles.title}/>) |
.input { | |
border: none; | |
} | |
//use styles from the class in the file | |
.firstCustomInput { | |
composes: input; | |
} | |
//use styles from the class in '_input.css' |
:global(.myClass) { | |
//here go styles for all .myClass classes | |
} |
.title { | |
border: 1px solid red; | |
} |
{ | |
test: /\.css$/, | |
loader: ExtractTextPlugin.extract(‘style-loader’, ‘!css-loader?modules&importLoaders=1!stylus-loader’) | |
}, |