Generate the names of random desserts 🦄.
npm install random-dessertsimport React from 'react';
import {
getRandomDessertsName,
getRandomDessert,
roll
} from 'random-desserts'
function App() {
return (
<div>
<p>{getRandomDessertsName()}</p>
<p>or</p>
<p>{getRandomDessert()}</p>
<p>or</p>
<p>{roll()}</p>
</div>
);
}
export default App;const rd = require('random-desserts');
console.log(`One random dessert: ${rd.getRandomDessertsName()}`);
console.log(`and another: ${rd.getRandomDessert()}`);
console.log(`or we could get one like this: ${rd.roll()}`);
console.log(`hell, let's just grab three different ones: ${rd.rollThree()}`);
console.log(`I'm still hungry, give me 20: ${rd.rollN(20)}`);Test
npm run test