ternate

1.0.0 • Public • Published

What is this?

ternate is simple function which can be used to write better readable conditional statement with react jsx

Installation

npm install ternate --save

Example...


 import ternate from 'ternate';
 
 ternate(this.state.loading === true, <Loader>, ()=> {return <App/>;})

Install

npm i ternate

DownloadsWeekly Downloads

4

Version

1.0.0

License

ISC

Unpacked Size

1.26 kB

Total Files

3

Last publish

Collaborators

  • sskywalker