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

可以解析一下入口文件index 的Component作用吗 #114

Open
sendy-dev opened this issue Jan 24, 2021 · 2 comments
Open

可以解析一下入口文件index 的Component作用吗 #114

sendy-dev opened this issue Jan 24, 2021 · 2 comments

Comments

@sendy-dev
Copy link

sendy-dev commented Jan 24, 2021

const render = Component => {
ReactDOM.render(
//绑定redux、热加载




,
document.getElementById('root'),

)
}

请问一下这段代码的Component 的有什么作用吗,实在看不懂这是啥高级语法

@bailicangdu
Copy link
Owner

这个Component就是router组件,这里是为了实现热更新做了一层封装

@bluesli199
Copy link

挺好的

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

3 participants