nerv
nerv copied to clipboard
A blazing fast React alternative, compatible with IE8 and React 16.
按照教程https://nervjs.github.io/docs/intro/getting-started.html安装时,发现报错提示少了webpack-cli的安装,安装npm install webpack-cli -D后正常访问。
第一时间 star 了 nerv, 然后近两天有空, 打算试用一下. ### 快速开始的一些问题 #### 1.在.babelrc配置了"pragma": "Nerv.createElement"后 则每个Component.jsx需要引入 Nerv, 否则编译时会报 Nerv is not defined. 比如以下纯文字组件: ``` import Nerv from 'nervjs' //必须, 因为 return 后的语句实际上转成了 Nerv.createElement(xxx) export...
ReferenceError: Nerv is not defined at Object. (D:\www2\nerv-ssr\dist\server-entry.js:1:30414) at Object. (D:\www2\nerv-ssr\dist\server-entry.js:1:30573) at n (D:\www2\nerv-ssr\dist\server-entry.js:1:186) at D:\www2\nerv-ssr\dist\server-entry.js:1:607 at Object. (D:\www2\nerv-ssr\dist\server-entry.js:1:616) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad...
不支持 webpack 热加载更新
说好的支持ie8了
快速开始文档过于简单,最好像vue官网那样包装好,包括webpack的常用配置等,再配上一个demo;
I see that there is documentation on various webpack/babel configuration but the building process is missing from documentation. Wouldn't it be better if there's a couple of paragraphs added to...
ie8上报default关键字不支持
When we launch a React web app with react bootstrap, it doesn't works because react-bootstrap can't get the react version. Console return this error "TypeError: Cannot read property 'split' of...
Reproduction: https://github.com/JounQin/1stg/tree/nervjs Branch: nervjs Alias: https://github.com/JounQin/1stg/blob/nervjs/build/base.js#L79-L80 Steps: `yarn dev` and visit http://localhost:4000 ```js const AppContainer = __DEV__ ? require('react-hot-loader').AppContainer : ({ children }) => children ``` ~~Actually both types of...