Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

React props

function Application() {
  const userName = "John Smith";
  return <UserInfo userName={userName} />;
}
function UserInfo({ userName }) {
  return <span>{userName}</span>;
}
Source by dmitripavlutin.com #
 
PREVIOUS NEXT
Tagged: #React #props
ADD COMMENT
Topic
Name
9+3 =