Props in React
Props in React Example you have component called Navbar.js inside your compoent folder 1. Include the following inside your component file (Navbar.js) export default function Navbar ( props ) [NOTE: Just you need to write inside () present there] 2. On exact point where there is text, remove that text and write {props.title} for eg: < a className = "navbar-brand" href = "/" > { props . title } </ a > that name called title can be putted according to you, but later you must use the same name in App,js [NOTE: that <a> tag is inside navbar at last you will get all code] 3. Now open App.js and you can write like : <> < Navbar title = "Madan" /> </> Now your that <a> text will converted into Madan as link, This will help to work like as in templates at which you can control from App.js 4. If you want multiple props then On Navbar.js <> ...