Closed bencripps closed 7 years ago
At the template scope this
is an empty object.
you cant import main from main.rt because it does not contain the whole component but only the render function. You might turn main into a stateless component (and drop the "this" from "this.props.children").
Yup, that was it! Thanks!
This is my main template
And the secondary Template that uses it:
If I remove the
this.props.children
from themain.rt
this document loads. How can I nest my components, and why isthis.props
undefined here?