React Js
React Js
useEffect(() => {
const abortController = new AbortController();
function MyButton() {
return (
<button>
I'm a button
</button>
);
return (
<div>
<h1>Welcome to my app</h1>
<MyButton />
</div>
);
in cmd
npm init react-app react.js
in cmd
npm run start
import { useState } from "react";
return (
<div>
<label> Your name</label>
<input onChange={Handdleinput} type="text" value={myinputvalue}
/>
<h1>{myinputvalue} </h1>
</div>
);
}