JavaScript React Basics (retired) First Steps in React State and the Virtual DOM

How React is different then Ajax or JS?

So, in the last minutes of video. Jim said about React won't recreate DOM. But if I do an Add button next to input type. When I do button add, it will add the like in this video . So what make React different?

1 Answer

Ajax is used to refresh a web page without having to reload it : it sends a request to the server, but typically the response is processed by the javascript that displays dynamically a new element on the browser without having to reload the entire page.

React is a javascript library that dynamically update the page with interface components. The components are calculated either by javascript interactions or by an Ajax request that go through the server. So ReactJS can also use Ajax requests to update the page.