Reactjs: br tag and ajax request

Viewed 19968

My question is divided into two parts:

  1. 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?

  2. 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?

1 Answers
Related