run a function in react render method jsx template string – Reactjs
I have a simple function to capitalize the first letter of timer_type, the func is const capitalize = (string) => { return string.charAt(0).toUpperCase() + string.slice(1) } In the render method of my app I have a long template string, the…