What’s Up With ReactJS?
In 2016 between June and July, there was around 1,500 articles posted about ReactJS itself on Medium. What? When? And why this library is getting so much attention? Let me break it down for you. First of all, ReactJS library makes it completely painless to create interactive UIs. So picture that – you design simple views for each state in your application, and ReactJS just efficiently updates and renders the right components when your data changes. Ta – daaa!
Give Me More!
The advantages of ReactJS, just to mention a few:
- You can design simple declarative views for each state in your application
Pssst… Think about an email client! If you view your inbox, well, that’s considered a state. Then, if you click ‘Compose’ and the editor opens up, that’s another. Makes sense, right? React takes those states and allows you to create views and components for them.
- Has encapsulated components: literally, everything (!) in a view is encapsulated in a component. Then those components can have properties and states as well!
- Dynamic properties & state
- Virtual DOM (Document Object Model). This baby enables you to work and render only certain parts of the DOM that you need
- Is completely independent of the rest of your app
- Can render on the client or the server
- Is narrow in scope and tightly focused
- Is also compatible with other libraries, like Angular, Ember, PHP etc.
Why is it getting more and more popular?
In fact, many refer to React as just the View in MVC (Model – View – Controller). It makes it easy to try out on a small feature in an existing project without waiting for it to render.
Why React Stands Out Among The Rest