React Programming
React Programming
programming1------------------------------------------------*/
////////////////////////Reactpage/////////////////////////////////
index.js:-
////////////////////////Htmlpage/////////////////////////////////
index.html:-
<!DOCYTYPE html>
<html>
<head>
</head>
<title>
</title>
<body>
<div id='root'></div>
</body>
</html>
/*-----------------------Basic
programming2------------------------------------------------*/
////////////////////////Reactpage/////////////////////////////////
index.js:-
////////////////////////Htmlpage/////////////////////////////////
index.html:-
<!DOCYTYPE html>
<html>
<head>
</head>
<title>
</title>
<body>
<div id='root'></div>
<div id='app'></div>
</body>
</html>
/*-----------------------Basic
programming3-----------------------------------------------*/
////////////////////////Reactpage/////////////////////////////////
index.js:-
////////////////////////Htmlpage/////////////////////////////////
index.html:-
<!DOCYTYPE html>
<html>
<head>
</head>
<title>
</title>
<body>
<div id='root'></div>
</body>
</html>
////////////////////////Reactpage/////////////////////////////////
index.js:-
////////////////////////Htmlpage//////////////////////////////////
index.html:-
<!DOCYTYPE html>
<html>
<head>
</head>
<title>
</title>
<body>
<div id='root'></div>
</body>
</html>
/*-----Basic programming5 with out JSX and pasing multiple value into
element-----------*/
////////////////////////Reactpage/////////////////////////////////
index.js:-
////////////////////////Htmlpage//////////////////////////////////
index.html:-
<!DOCYTYPE html>
<html>
<head>
</head>
<title>
</title>
<body>
<div id='root'></div>
</body>
</html>
////////////////////////Reactpage/////////////////////////////////
index.js:-
////////////////////////Htmlpage//////////////////////////////////
index.html:-
<!DOCYTYPE html>
<html>
<head>
</head>
<title>
</title>
<body>
<div id='root'></div>
</body>
</html>
////////////////////////Reactpage/////////////////////////////////
index.js:-.
////////////////////////Htmlpage//////////////////////////////////
index.html:-
<!DOCYTYPE html>
<html>
<head>
</head>
<title>
</title>
<body>
<div id='root'></div>
</body>
</html>
////////////////////////Reactpage/////////////////////////////////
index.js:-.
////////////////////////Htmlpage//////////////////////////////////
index.html:-
<!DOCYTYPE html>
<html>
<head>
</head>
<title>
</title>
<body>
<div id='root'></div>
</body>
</html>
////////////////////////Reactpage/////////////////////////////////
{
this.setstate([counter: this.state.counter+1]);
//this.counter=this.counter+1;
//alert('Adding a new Employee');
//alert('Add Employee Button is clicked'+this.counters+'times');
}
render()
{
return <div>
<h2>Welcome to Employee componet...</h2>
<p>
<label>Add Employee Button is clicked:<b>{this.state.counter}</b></label>
</p>
</div>
}
}
const element=<Employee></Employee>
ReactDom.render(element,document.getelementByid('root'));
////////////////////////Htmlpage//////////////////////////////////
index.html:-
<!DOCYTYPE html>
<html>
<head>
</head>
<title>
</title>
<body>
<div id='root'></div>
</body>
</html>
////////////////////////Reactpage/////////////////////////////////