sarcasmify
v1.3.0
Published
A tiny library for converting plaintext iNtO iNtErNeT SaRcAsM
Downloads
8
Maintainers
Readme
Sarcasmify
Sarcasmify is a React hook for converting normal text into InTeRnET SaRcAsM.
Installation
yarn add sarcasmify
Usage
import { useSarcasm } from 'sarcasmify';
export default function MyComponent() {
const sarcasmify = useSarcasm()
const mySarcasticVariable = sarcasmify('this is some text')
return (
<div>
<p>Here is some regular text</p>
<p>{mySarcasticVariable}</p>
</div>
);
}
Live demo
A live demo is available on StackBlitz here.