How to pass props from a parent component to a child component?
Use syntax [prop_-name]={prop_value} in the JSX for the child component within the parent component's render method.

https://www.interviewquestionspdf.com/2017/02/how-to-pass-props-from-parent-component.html
Use syntax [prop_-name]={prop_value} in the JSX for the child component within the parent component's render method.