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

render_props_demo目录中文件小错误 #3

Open
sunchenguang opened this issue Sep 1, 2019 · 0 comments
Open

render_props_demo目录中文件小错误 #3

sunchenguang opened this issue Sep 1, 2019 · 0 comments

Comments

@sunchenguang
Copy link

render_props_demo/src/Auth.js 中是使用props.nologout

<React.Fragment>
      {props.nologout(props)}
 </React.Fragment>

但是,App.js中使用nologin, 不匹配

<Auth
       login={({userName}) => <h1>Hello {userName}</h1>}
       nologin={() => <h1>Please login</h1>}
 />
@sunchenguang sunchenguang changed the title render_props_demo目录小错误 render_props_demo目录中文件小错误 Sep 1, 2019
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

1 participant