Write a React app that can take user input, call an api and display the result in HTML.