James Gillmore
James Gillmore
basically you need style-loader or extract-text-webpack-plugin after css-loader for the following to work: ``` import styles from 'Foo.css' ```
ah: `loader: 'css-loader/locals'`, !! nice. i'll try that.
...it worked like a charm for webpack! ``` { test: /\.css$/, use: 'css-loader/locals?modules&localIdentName=[name]__[local]--[hash:base64:5]', }, ``` ...now i just need to figure out how to add it to the babelrc without...
the problem with this: > If you use node api then you can define env variable just like process.env.IS_WEBPACK = true; as first thing in your root script for example....
cool. I'll look into that. Thanks so much. I'm sure I'm taking up too much of your time. I'll let you know how things go...
warning in the console is really less than ideal. it basically is an issue similar to forgetting to do immutability, but maybe worse without the console warning. i hope #1...
i put it to 1.2.1--is that ok? ps. i also decided to add a 2nd arg for `mapDispatchToProps` based on our discussion. It doesn't sound like we have a strong...
Typically, a new `doSomething` reference will trigger an update every time `props` changes: ```js const mapDispatch = (dispatch, props) => { const doSomething = (arg) => dispatch({ type: 'FOO', payload:...
the only issue I see is this: the child component will re-render no matter what if the props changes. so it does not matter that we kept the reference returned...
...i mean we can do anything for our own libs. im just trying to figure out what the exact thinking of `react-redux` is. it seems the "optimization" is simply that...