This is the fourth part of my series on MVCs, where I will be collecting and offering links for getting to know, and get started with, MVCs.
I will be focusing on what I consider to be the big four right now (each will become a link as I publish that part):
I suppose you should really start with React’s own Getting Started page, but, once again, it is so dry I’m afraid you will fall asleep, or get intimidated, before you really get going! You may need to come back later, to get download, installation, set-up, etc. instructions, but for now…
For a really good quick run through all the basics of React, Learn React offers a very brief, but easy to follow, list of videos. I think this is a good way to get the core concepts before diving into the thorough documentation.
As an added benefit to React, there is also React Native, which allows you to use React to build native apps. Yeah, use JS to build iOS and Android apps… I have not dug too deeply into this yet, but if you are interested, here are a couple of resources.
Initially I was a little put-off because React is so JS-heavy and seemed a little awkward, but when I saw JSX I thought “Things just got much better…” It is very friendly, being able to essentially write HTML in your JS, kind of like one would with jQuery, with something like:
And once I saw
createClass, I was pretty much in love: React basically does what we’re all pretty used to (Object-Oriented JS), with very little alteration (though I did get tripped up a few times by forgetting to wrap variables and methods inside of
I was also quite enthused to learn that React can also be rendered server-side, which helps to satisfy my old-curmudgeony ways, allowing actual pages to be rendered on the server, sent to the client, then interacted with there as a SPA…
I hope you enjoyed getting to know React, up next is Backbone.js!