Out of curiosity, why did you write the function like this:
const MyRootComponent = (props) => {
When it's shorter and more obvious what's happening if you write them like this: function MyRootComponent(props) {