Coding Challenge
Let’s add a new parent component to our React application in Python while using Transcrypt.
We'll cover the following
Problem statement
Currently, the application shows how React’s hierarchical components work.
Make a new component in the Div.js
file and then import it into the App.js
file. The component should add a div
with a yellow background around it’s children components. Feel free to use the Unit
component as a reference.
Then add the component in the App
component, ensuring that it wraps around the other components.
Get hands-on with 1200+ tech skills courses.