React for All

Library of Framework

Why React

document.getElementById('first')document.getElementById('second')document.querySelector('.box')....///
function showTime() {// plain javascriptdocument.getElementById('clock').innerHTML=`<div><p>This is our clock</><p>The current time is: ${new Date()}</p></div>`;// reactReactDOM.render(React.createElement('div',null,React.createElement('p',null, 'This is our clock'),React.createElement('p',null, 'The current time is: ', new Date()),document.getElementById('clock2')))}
setInterval(showTime, 1000);

JSX

function showName() {return(<p>My name is Abdullah</p>      )}

Diff Algorithm

Component or component

<Button></Button><button></button>
React.createElement(Button, null);React.createElement("button", null);

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store