React

Introduction to React - Use of props to pass data ...

7.

How can you access the value of a prop in a React component?

By using the getProp() function

By using the props() method

By using the this.props keyword

By directly accessing the prop name