From IT Skills
Jump to: navigation, search

https://reactjs.org/

It is maintained by Facebook, Instagram and a community of individual developers

One-way data flow[edit | edit source]

Properties, a set of immutable values, are passed to a component's renderer as properties in its HTML tag. A component cannot directly modify any properties passed to it, but can be passed callback functions that do modify values. This mechanism's promise is expressed as "properties flow down; actions flow up".

Virtual DOM[edit | edit source]

Another notable feature is the use of a "virtual Document Object Model," or "virtual DOM." React creates an in-memory data structure cache, computes the resulting differences, and then updates the browser's displayed DOM efficiently.[8] This allows the programmer to write code as if the entire page is rendered on each change while the React libraries only render subcomponents that actually change.