0.1.1 • Published 6 years ago

react-trumpscare v0.1.1

Weekly downloads
9
License
-
Repository
-
Last release
6 years ago

Give your users a Trump-scare! It's like a jump-scare, but with Donald Trump instead.

Installation

Install using NPM

npm install --save react-trumpscare

or Jest

yarn add react-trumpscare

Example

<TrumpScare trigger="reload" />

Change scare image

While you'll probably never find something truly scarier than Donald Trump, you can use the image prop to control what image is displayed when the scare happens...

<TrumpScare image="..." />

Change TrumpScare behavior

By default, the TrumpScare will randomly occur if the user loads or refreshes your app. You can change this behavior using the trigger prop...

Trigger on reload:

<TrumpScare trigger="reload" />

Trigger on scroll:

<TrumpScare trigger="scroll" />

Trigger randomly, when least expected:

<TrumpScare trigger="random" />

"Are you afraid of God?"

– Donald Trump

"No, but I'm afraid of you."

– Everyone else