Hi guys, I got stuck in a React project
https://codesandbox.io/s/unruffled-satoshi-q3lee?file=/client/src/views/Staff/AddEmployee.js
I want to pass a object from parent class component to prop child component
Parent component class is
https://codesandbox.io/s/unruffled-satoshi-q3lee?file=/client/src/views/Staff/listEmployee.js
where I am passing value to child via function for retrieveRole, location and employer
Whats the best way to send the value in object to render this in child class.