Showing posts with label props. Show all posts
Showing posts with label props. Show all posts

Wednesday, August 8, 2018

props example in React

props or properties in React is a way in which we can pass data between components in a React page. Usually props are passed from the parent component to the child/nested components.  props are immutable they are passed from the parent/container component to the child components.

In this example we shall see on how to pass props in a parent component and pass it to the child/nested component.