How can i not repeat my code?

i started the random quote project, but i repeat my code in the firstClick() and firstQuote() function.
can you help me please ?
A Pen by Dylan (

okkay, i see.
and please, how can i ‘synchoron’ the value of the authors array in the component Author with the quotes of the component Quote ? is it possible to store multiple component in a global store ?

okay i’ll try it,thanks you

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.