ihatereact

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i ihatereact

Weekly Downloads

70

Version

1.1.0

License

UNLICENSED

Unpacked Size

3.21 kB

Total Files

7

Last publish

Collaborators

  • 87f-