Hello, this is my first post on this forum, so sorry, if this was covered already.
So basically, I’m trying to randomize those quotes with React components, and I have two elements: one is meant to display quote, another - its author.
But my React script always renders both either in quote element, or author element.
Here is my progress so far.
So, my question is - how do I make React render child components in separate HTML elements? Also, they are linked with parent state property - quote index must align with author index.
You can have a different id for the HTML component and you can call the root component something else, (like you had it as “QuoteComponent”) but these are pretty standard.