react-router-loader
react-router-loader copied to clipboard
Dynamically load react-router components on-demand, based on react-proxy-loader
React.createClass is deprecated Need to update for support React 15+
in `webpack2`, apply the loader should be ```javascript ``` instead of ```javascript ```
我自动编译后,就报“Uncaught TypeError: Cannot read property 'call' of undefined(…)” 这是什么原因呢
Works great! I was wondering if there's a way to pass in props to the component? I used to be able to do `{(props) => }`, how would I go...
@luqin 我能在 component里使用require项目也能运行,但是还需要在前面import(引入)文件, import commodityDetail from './modules/commodity/detail'; 另外在‘network’里也没看到load记录
Due to the nature of relay components, the react-router-loader (proxy component) cannot be used. https://github.com/relay-tools/react-router-relay/issues/161#issuecomment-221799565 That's unfortunate because I **really like** how react-router-loader cleaned up my routes! If you could...
hi, 我在用 `webpack` 打包的时候,是没有问题的。 但是 server端 有这么一段 ``` import { match, RouterContext } from 'react-router'; import routes from '../app/modules/routes'; // 加载路由 ``` 就会报错 ``` Error: Cannot find module 'react-router?name=default!./modules/App' at...
luqin,你好。 我使用`react-router-loader`实现了按需打包加载,但现在需要做一个进度条功能,需要在按需加载结束后(js加载出来)停止进度条。由于已经分为了很多个文件,如果在每个按需加载的组件`componentDidMount`里写`NProgress.done()`就太繁琐了;所以希望在`require.ensure`里执行。 1、我知道按照react-router的配置写法在`require.ensure`中和在`componentDidMount`中可以实现这样的功能;想请问有什么别的思路可以在使用`react-router-loader`的情况下实现么? 2、我已经修改了`index.js`这个文件,我将修改后的`index.js`和`mixinReactProxy.js`提出来放在自己的文件夹里,不再引用`node_modules/react-router-loader`,运行webpack报错;我需要怎样才能让代码生效呢? 谢谢