nerv
nerv copied to clipboard
A blazing fast React alternative, compatible with IE8 and React 16.
ie8环境下 babel没有转换.default
我看宣传视频最后提了,一直没动静呀。。望眼欲穿,哈哈
…the defaultValue
Version: nervjs 1.5.7 现象:使用 TS 时,nervjs 类型无法正常提示 原因: package.json 中指定的 typings 路径为 `index.d.ts`: ```json { "name": "nervjs", "version": "1.5.7", "description": "A react-like framework based on virtual-dom", "main": "index.js", "module": "dist/index.esm.js",...
Is anyone here would make a MAGI System like what they did in EVA?
Using Material ui components does not work with `nervjs`. Steps to reproduce: - Create an app with `create-react-app` - Replace any calls to react with `nervjs` - Install the `material-ui`...
The readme and website make a bunch of extraordinary claims ("same api, much faster, better browser compat, smaller bundle size"), but what are the tradeoffs of choosing Nerv vs vanilla...
Fixing: ``` Could not find a declaration file for module 'nervjs'. './default/node_modules/nervjs/index.js' implicitly has an 'any' type. Try `npm install @types/nervjs` if it exists or add a new declaration (.d.ts)...
### 问题描述 setState的回调函数中再次setState,第二个setState回调函数中无法及时获取更改后的值 ### 复现步骤 1. state 中定义两个变量{page: 1, num: 1} 2. 点击触发更改num值的方法 3.在setState回调方法中更改page值为2 4. 此时回调函数中page值仍然为1,没有被改变 ```js state = { num: 1, page: 1 } this.setState({num: 1},()=> { this.setState({page: 2},...
因为 严格相等(===) 和 同值相等(Object.is) 都为 true ,所以 shallowEqual(null, null) 也应该为 true