I have a Html page which is configured/connected with a third party engine that continuously checks the web application against some rules and embeds a div tag in to the body if conditions are passed.

Creation of the div and all the elements in it is done using javascript. Now I need to replace that javascript way of elements creation (dom manipulation) with react.js and flux way of doing it.

Can anyone please tell me what are the advantages of doing it using React rather than general javascript apart from virtual dom usage for better performance.