-
Notifications
You must be signed in to change notification settings - Fork 128
Closed
Labels
ProposalProposals (haven't confirmed)Proposals (haven't confirmed)
Description
It would be nice to have a special syntax for child functions.
i.e.
<ThemeContext.Consumer>
<(theme)>
<h1 style={{color: theme === 'light' ? '#000' : '#fff'}}>
{this.props.children}
</h1>
</>
</ThemeContext.Consumer>
instead of
<ThemeContext.Consumer>
{theme => (
<h1 style={{color: theme === 'light' ? '#000' : '#fff'}}>
{this.props.children}
</h1>
)}
</ThemeContext.Consumer>
Metadata
Metadata
Assignees
Labels
ProposalProposals (haven't confirmed)Proposals (haven't confirmed)