Sarcasmify is a React hook for converting normal text into InTeRnET SaRcAsM.
yarn add sarcasmify
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>
);
}
A live demo is available on StackBlitz here.