fix: stop quotes reloading (#37342)
This commit is contained in:
committed by
mrugesh
parent
f0c1d3a759
commit
6ce9482b22
@ -7,8 +7,12 @@ import { randomQuote } from '../../utils/get-words';
|
|||||||
|
|
||||||
import './welcome.css';
|
import './welcome.css';
|
||||||
|
|
||||||
function Welcome({ name }) {
|
// created outside the function, so that the quotes don't change unless the
|
||||||
|
// page is reloaded.
|
||||||
|
|
||||||
const { quote, author } = randomQuote();
|
const { quote, author } = randomQuote();
|
||||||
|
|
||||||
|
function Welcome({ name }) {
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<Row>
|
<Row>
|
||||||
|
Reference in New Issue
Block a user