Answers for "what are props in reactjs"

1

props react

function Welcome(props) {  return <h1>Hello, {props.name}</h1>;
}

const element = <Welcome name="Sara" />;ReactDOM.render(
  element,
  document.getElementById('root')
);
Posted by: Guest on March-31-2020

Code answers related to "what are props in reactjs"

Code answers related to "Javascript"

Browse Popular Code Answers by Language