LJJCherry
LJJCherry
@chenmnkken 没看懂哎。。为什么说setState的时候希望state是一个纯粹的对象。。但是例子里面用的不就是immutable对象,我是哪里理解错了 
> ```js > function request (url) { > return new Promise (resolve => { > const time = Math.random() * 1000 > setTimeout(() => resolve(`${url} + ${Date.now()}`), time) > })...
same problem
how to fix ?
可以给page自定义样式。。。
16.3的版本之后没有了AsyncComponent,那render方法是哪来的呢?
参考MR:https://github.com/arackaf/customize-cra/pull/339/commits/0f88a26f8dfd1ceaa0214751f78eb7261fdfd0cc 需要重写一下这个方法 addPostcssPlugins ```javascript const addPostcssPlugins = plugins => (config) => { const rules = config.module.rules.find(rule => Array.isArray(rule.oneOf)).oneOf; rules.forEach(r => r.use && r.use.forEach((u) => { if (u.options && u.options.postcssOptions &&...
```javascript // 重写 addPostcssPlugins 方法 const addPostcssPlugins = plugins => (config) => { const rules = config.module.rules.find(rule => Array.isArray(rule.oneOf)).oneOf; rules.forEach(r => r.use && r.use.forEach((u) => { if (u.options && u.options.postcssOptions...
我也遇到了这个问题