How to Call a Function inside a Render in React/Jsx

To call the function you have to add ()

{this.renderIcon()}   

Leave a Comment