31 Jan 2015

Exploring reactjs

There’s been a lot of activity around the announcement of React Native this week. I’ve been wanting to take a look at reactjs for sometime. I don’t know exactly where I am on the javascript learning ladder, but I’m starting to feel the urgency of putting some kind of organization on my javascript code.

The best way to experience a new technology, language, framework or library is to build something for yourself. So after reading a couple of tutorials I decided to try to build something.

I keep a list of the movies I watch, just because, you know, maybe someday will be interesting to analize the data. Anyway, I’ve tried to use reactjs to show the posters of those movies. Who knows, maybe I could use it in the future to show the movies I watch in this blog.

In order to get the posters I’m using the Rotten Tomatoes API. The code just uses an array of movie titles, make an API request for each one and returns it’s image.

It was necessary to throttle the AJAX requests as the API only allows you to make 5 req/s.

Here is the code in case you are interested: react-movies in github

react-movies image

I have to say that I like reactjs. I plan to dive deeper to see if it will help me improve my javascript applications.