Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Conversation

@ziadkh0
Copy link
Contributor

@ziadkh0 ziadkh0 commented Jan 29, 2018

This allows the following notation:

render() {
  const {on} = this.props;

  return <div>{on && 'Is on'}</div>;
}

Where on is a boolean

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant