Before continuing, I will like to share a very simple application I have created as the result of what we are going to achieve after finishing this post. It consists of:
- A Person model.
- A HomeController with just one index action, the root route of the application and where the React components render and are in charge of creating search requests and displaying the results to the user.
- A PeopleController which just renders the JSON result of the requested searches.
http://rails-and-react-ii.herokuapp.com/