top of page

Learn React | 2nd Program

We are using Two js File First is App.js and Create one more with Name Blog.js

First Start with App.js

import './App.css'; import Blog from './Blog'; function App() { return ( <div className="t" > <Blog/> </div> ); } export default App;

Now go to Blog.js

const Blog = () => { const First_Name="Amit"; const Last_Name="Kumar"; const Address="Noida"; const Salary=50000; const Post="React Developer"; return ( <div> <p>My Name is ={First_Name} {Last_Name} My Address is {Address} My Salary is {Salary} and I am a {Post} Developer</p> </div> ); } export default Blog;

7 views0 comments

Recent Posts

See All

First Program in React

learn react,learn react js,react,react js,react tutorial,learn reactjs,reactjs,react js tutorial,learn react for beginners,react crash cours


bottom of page