| ▲ | apsurd an hour ago | |||||||||||||||||||||||||||||||
react can be pure functions that take in props. Given a set of props, ideally data primitives, the outputted view is guaranteed. it's nice. In practice, the entire JS ecosystem enjoys flying off the rails, every season, but it's not strictly react's fault. To answer your question, however those props get into the component is up the the M & C. can be async server, or shoved in as json in the script tag. | ||||||||||||||||||||||||||||||||
| ▲ | azangru an hour ago | parent [-] | |||||||||||||||||||||||||||||||
If you move the data (the M and the C) entirely out of react, and only pass it in via props, there would be only one place — the root react node — where the props could get into react. Is this what you have in mind? Or are you envisioning multiple root nodes? | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||