{"id":5402,"date":"2018-10-10T11:29:00","date_gmt":"2018-10-10T05:59:00","guid":{"rendered":"\/?p=5402"},"modified":"2019-12-31T16:09:02","modified_gmt":"2019-12-31T10:39:02","slug":"beginners-guide-to-react-js","status":"publish","type":"post","link":"https:\/\/www.argildx.us\/miscellaneous\/beginners-guide-to-react-js\/","title":{"rendered":"Beginners’ Guide to React JS"},"content":{"rendered":"

React is a JavaScript library for creating user interfaces. Its core principles are declarative code, efficiency, and flexibility. Simply specify what your component looks like and React will keep it up-to-date when the underlying data changes.<\/em><\/p>\n

– Official React Documentation<\/em><\/p>\n

Glossary:<\/b><\/h6>\n

React JS and React have been used interchangeably throughout the blog and mean the same thing.<\/p>\n

React Native:\u00a0React code that\u00a0is usable across\u00a0the web\u00a0and\u00a0 mobile.<\/p>\n

Angular: MVC framework for UI.<\/p>\n

Transpiler: A type of compiler that takes the source code of a program written in one programming language as its input and produces the equivalent source code in another programming language.\u00a0Transpiler\u00a0and compiler can be used\u00a0interchangeably.<\/p>\n

DOM:<\/strong> Document Object Model is a tree of HTML objects.<\/p>\n

Note:<\/strong> This blog\u00a0has been written entirely from my perspective and is what I feel as a newbie to the world of React.<\/p>\n

Let’s get started.<\/p>\n

There’s a lot of good buzz about React out there.<\/p>\n

It seems like React JS has become a library many want to try out but somehow, it’s always out of reach. This blog is aimed towards the audience who is looking for a perfect mix of theory and hands-on.<\/p>\n

What is React?<\/b><\/h5>\n

React\u00a0provides\u00a0you a templating\u00a0language and some function holders\u00a0to\u00a0primarily\u00a0render\u00a0HTML. That’s all React\u00a0yields, HTML. React is mainly the view layer. React is\u00a0listed\u00a0in\u00a0the same verticals as other JavaScript\u00a0frameworks but ‘React vs Angular’ doesn’t make sense\u00a0at all\u00a0because they aren’t directly comparable. Angular is a complete framework (including the view layer).<\/p>\n

Is it worth the hype? Why is it getting so popular?<\/b><\/h6>\n

These are some of the benefits which make React JS standout among its contemporaries:<\/p>\n