Hello. I am very new to React. and actually currently working on the random quote machine project using react. i am having trouble with the “new quote” button. i originally had it working but they were both nested inside the same component. so, it was causing formatting issues. so ive been trying to take the new quote button and put it inside a different component and calling the child component from the parent but im struggling with the proper syntax. can someone help me out?
You normally would only call ReactDOM.render once, with the components somehow nested in a root component. I’m not sure if there’s any way for components in different ReactDOM.render calls to communicate.
Layout shouldn’t be too much of an issue, since the JSX elements will appear in the DOM pretty much the same way as if it was regular HTML.