{
const root = html`<div></div>`;
class Car extends React.Component {
render() {
return htm`<h2>I am a ${this.props.brand}!</h2>`;
}
}
class Garage extends React.Component {
render() {
const brandObj = {name: "Ford"};
return htm`
<div>
<h1>Who lives in my garage?</h1>
<!-- <${Car} brand=${brandObj} // comment out /> -->
<${Car} brand=${brandObj.name} />
</div>
`;
}
}
ReactDOM.render(htm`<${Garage} />`, root);
return root;
}