diff --git a/client/src/components/welcome/index.js b/client/src/components/welcome/index.js index 2398c505c8..6b18041469 100644 --- a/client/src/components/welcome/index.js +++ b/client/src/components/welcome/index.js @@ -7,8 +7,12 @@ import { randomQuote } from '../../utils/get-words'; import './welcome.css'; +// created outside the function, so that the quotes don't change unless the +// page is reloaded. + +const { quote, author } = randomQuote(); + function Welcome({ name }) { - const { quote, author } = randomQuote(); return (