CSFundamental
Published in

CSFundamental

Day 5: Props in React

A lesson on props in React

import './App.css';import React from 'react';import Welcome from './components/welcome';function App() { return (  <div className="App">   <Welcome name ="John"/>  </div>);}export default App;
import React from 'react';function Welcome(props){return <h1>hey {props.name}!!</h1>}export default Welcome

--

--

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
Saranjeet Singh

I write tutorials on Python, JavaScript, React, and Django. I write for InPlainEnglish and TheStartUp .