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';
|
||||
|
||||
// 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 (
|
||||
<Fragment>
|
||||
<Row>
|
||||
|
Reference in New Issue
Block a user