Hacker News new | past | comments | ask | show | jobs | submit login

Not sure I follow. Where does value come from?



UserIdConsumer will call the children prop as function, UserIdConsumer could look like this:

    const UserIdConsumer props => <Fragment>props.children(theValueYouWantAvailable)</Fragment>




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: