Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/router/router.js修改建议 #3

Closed
MANSOUL opened this issue Jan 24, 2018 · 1 comment
Closed

src/router/router.js修改建议 #3

MANSOUL opened this issue Jan 24, 2018 · 1 comment

Comments

@MANSOUL
Copy link

MANSOUL commented Jan 24, 2018

建议修改createComponent为:

//添加props,否则组件无法接收到路由信息
const createComponent = (component) => (props) => (
    <Bundle load={component}>
        {
            (Component) => Component ? <Component {...props}/> : <Loading/>
        }
    </Bundle>
);
@brickspert
Copy link
Owner

@MANSOUL 恩。我去改改。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants