Get random joke directly from Hello Roman
import { useHelloRomanJoke } from 'use-haki';
const App = () => {
const { position, isResolved } = useHelloRomanJoke();
return (
<section>
<h1>{randomQuestion}</h1>
<p>{randomAnswer}</p>
</section>
);
};
const [randomQuestion, randomAnswer] = useHelloRomanJoke();
- randomQuestion
- randomAnswer
- error