1.1.0 • Published 11 months ago

ihatereact v1.1.0

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
11 months ago

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

1.1.0

11 months ago

1.0.0

1 year ago