ano po function sa react js? parang syang ajax na mag interact sa database?
Best resource is to read the docs You do not have permission to view the full content of this post. Log in or register now. and try it.
React JS is a JavaScript framework for creating user interfaces. How is it different with other frameworks?
* It's JavaScript. Depending where you look online, JavaScript is either rank 1 as the most popular language or at least you'd see it at rank 2-10.
* Everything is a component - meaning the separation of concerns is not HTML, CSS, JavaScript. A simple analogy is instead of dividing a cake horizontally (which sounds stupid but that's what we do often in the UI), we slice vertically. So each slice is self-contained flavor from the icing to the base cake.
* You don't write HTML to describe the markup but you write it them as JSX components
* It only deals with the view layer (displaying the UI). It doesn't deal with the database. React is client side but can also be rendered from the server side
* It's created by Facebook. That means it's backed by a powerhouse entity.
* React JS has a mobile counterpart named React Native. So if you know React JS, you will be familiar with React Native which is used by Facebook to develop their mobile app and also Instagram app.
* It has a large community -- meaning lots of free plugins to use, ie charts, forms, visualization, etc.
* React embraces unidirectional flow of data. A good analogy is the direction comes from the general and not from the private soldiers. This gives order. Imagine if the private soldiers are the one making demands (and the funny thing is this is what inexperienced programmers are doing).