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
Correct: C
In a React component, you can access the value of a prop by using the this.props keyword. This allows you to retrieve and use the data passed from the parent component within the child component.