ihatereact
v1.1.0
Published
I HATE REACT!
Downloads
17
Maintainers
Readme
I hate react
This library hates React. In this example I am using the true and false libraries for simplicity.
const ihatereact = require('ihatereact')
const t = require('true')
const f = require('false')
const _true = t()
const _false = f()
ihatereact(_true, _true) // will say "Using React :(" and throw error
ihatereact(_false, _true) // will say "Yay not using React! You smart" and throw error
ihatereact(_false, _false) // will say "Yay not using React! You smart" and ":)"
ihatereact(_true, _false) // will say "Using React :(" and ":)"
first parameters is if you're using react or not second parameters is if you want it to throw error