Does a component always need a render method?

Question

In the context of this exercise, does a component always need a render method?

Answer

Yes, the only method that must always be declared inside a component is the render() method.

However, you do not always have to return an element in the render() method, and instead you can have it return a Boolean or a null value.

1 Like