Fundamental Concepts In React That Will Probably Come Up On An Interview
========================================================================
Incomplete Article
------------------------------------------------------------------------
### Fundamental Concepts In React That Will Probably Come Up On An Interview
#### Incomplete Article
A list of all of my articles to link to future posts You should probably skip this one… seriously it’s just for internal use!bryanguner.medium.com
**Explain how React uses a tree data structure called the “virtual DOM” to model the DOM**
> ↠The Virtual DOM is an in-memory tree representation of the browser’s Document Object Model. React’s philosophy is to interact with the Virtual DOM instead of the regular DOM for developer ease and performance.
> ↠By abstracting the key concepts from the DOM, React is able to expose additional tooling and functionality increasing developer ease.
> ↠By trading off the additional memory requirements of the Virtual DOM, React is able to optimize for efficient subtree comparisons, resulting in fewer, simpler updates to the less efficient DOM. The result of these tradeoffs is improved performance.
------------------------------------------------------------------------
### **Describe how JSX transforms into React.createElement calls:**
#### ↠JSX is a special format to let you construct virtual DOM nodes using familiar HTML-like syntax. You can put the JSX directly into your .js files, however you must run the JSX through a pre-compiler like Babel in order for the browser to understand it.
#### ↠ReactDOM.render is a simple function which accepts 2 arguments: what to render and where to render it:
------------------------------------------------------------------------
### Describe how JSX transforms into React.createElement calls:
> ↠JSX is a special format to let you construct virtual DOM nodes using familiar HTML-like syntax.
> ↠You can put the JSX directly into your .js files, however you must run the JSX through a pre-compiler like Babel in order for the browser to understand it.
------------------------------------------------------------------------
> ***Here we initialize a Clock component using JSX instead of React.createElement .***
> Using Babel this code is compiled to a series of recursively nested createElement calls:
### TBC…
By Bryan Guner on [June 29, 2021](https://medium.com/p/5495b6421287).
Canonical link
Exported from [Medium](https://medium.com) on August 31, 2021.