{"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 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 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 These are some of the benefits which make React JS standout among its contemporaries:<\/p>\n An efficient algorithm then determines the changes made to the virtual DOM to identify the changes that need to be made to the real DOM. It then determines the most\u00a0suitable\u00a0way to make these changes and then applies only those changes to the real DOM. This\u00a0ensures\u00a0a minimum update time to the real DOM, providing higher performance and a cleaner user experience all around.<\/p>\n We will take up something to code on React in the next part of this blog…<\/p>\n Coming from JAVA background and having\u00a0noob level knowledge\u00a0about fronted (JS, CSS, HTML)\u00a0lingo, React JS didn’t feel like something that couldn’t be done. A basic syntax of JS (maybe ECMA\u00a06) is what you need to know to get started.<\/p>\n Effort required is a lot less as compared to other JS libraries and frameworks\u00a0( Angular\u00a0for example). When I first encountered JSX as HTML being written inside JS, the idea itself sounded crazy. I thought why\u00a0would anybody\u00a0want that. But 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. – Official React Documentation Glossary: React JS and React have been used interchangeably throughout the blog and mean the … Read more<\/a><\/p>\n","protected":false},"author":6,"featured_media":7281,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","content-type":"","footnotes":""},"categories":[317],"tags":[104,105,106,107],"yst_prominent_words":[868,856,864,834,865,867,857,855,863,862,854,859,852,861,858,721,739,860,866,853],"acf":[],"yoast_head":"\nGlossary:<\/b><\/h6>\n
What is React?<\/b><\/h5>\n
Is it worth the hype? Why is it getting so popular?<\/b><\/h6>\n
\n
\nA\u00a0<\/span><\/span>Github<\/span><\/span>\u00a0Stars History for Angular, React & Vue (<\/span><\/span>Source<\/span><\/span><\/a>)<\/span><\/span><\/p>\n<\/li>\nAll that is fine but\u00a0<\/b>what’s<\/b>\u00a0up<\/b>\u00a0with all that\u00a0<\/b>jargon ?<\/b><\/h6>\n
\n
My view about React Js\u00a0<\/b><\/h5>\n
\nAlso\u00a0when you know that you are getting into something that is largely industry friendly and has a great developer community, it just feels the right thing to do.
\nReact JS when combined with react-router and react-bootstrap, serves as a complete package.<\/p>\n
\nafter spending some time with it, everything made a lot of sense. The ability to re-render components based on state changes in the most efficient way is what makes React stand apart.<\/p>\n","protected":false},"excerpt":{"rendered":"