3 ms·
Not all of your logic has to be in render() itself. You can define other methods on your component that will be bound to `this` in render(), so you can just cal
by nearengine 11y ago
Not all of your logic has to be in render() itself. You can define other methods on your component that will be bound to `this` in render(), so you can just call them like `this.renderFoo()`. Each one just has to return a single root node with optional children like the render() method does.