how to get access to react functional component props code example
Example: How to acces props of a functional component
const Child = (props) => { return ( <div style={{backgroundColor: props.eyeColor}} /> )}
const Child = (props) => { return ( <div style={{backgroundColor: props.eyeColor}} /> )}