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/>;})

Package Sidebar

Install

npm i ternate

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

1.26 kB

Total Files

3

Last publish

Collaborators

  • sskywalker