There is only single state present in the entire code and also the state is accessible to all child components if I need to change the state from the heading component all components are updated with updated state.

If i need to render the Text component above and heading component below still it works without changing any code in the text component or heading component.

code of conduct - report abuse