My question is divided into two parts:
I know how to do ajax request to third party api on componentDidMount but when i tried doing same request with a function on a click event it did not happen?
I also tried to use
<br>tag in react to break a line but it does not render at a all and gives me error.
Can anyone please help me to understand why this is happening and how can i resolve these issues?