Use a method named render
in the backend, automatically populating its arguments with props and state
where needed.
Use a method named render
in the backend, automatically populating its arguments with props, state, and
propsChildren where needed.
You're on step 3/4 on the way to building a component.
Here you specify your component's render function. For convenience there are a plethoria of methods you can call that all do the same thing but accept the argument in different shapes; the suffixes in method names refer to the argument type(s). This means you choose the method that provides the types that you need, rather than having to manually specify the types for all arguments including stuff you don't need.
If you're using a backend, then it's highly recommended that you put your render function in the backend. When you do that, make sure it's called
.render
and then here in the builder, use the.renderBackend
or.renderBackendWithChildren
methods which will use a macro to inspect your backend's render method and provide everything it needs automatically.