You often find duplication between the name of a prop and a variable you will assign to the prop. JSX allows you to spread an object containing your named props into your Component which enables you to avoid the repetition of matching prop names and…
JSX------HTML tags vs React Components: 1.To render a html tag,just use lower-case tag names in JSX; var myDivElement = <div className="foo" />; React.render(myDivElement, document.body); 2.To render a React Component,just create a local v…