1.0.0 • Published 5 years ago
ternate v1.0.0
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/>;})
1.0.0
5 years ago