I am working on a React project in that I am trying to pass an array from the child component to the parent component. But I don't know how to pass it
This is Parent component
import React from 'react';
import Child from './Child/Child'
function App() {
return(
<div className='App'>
<Child></Child>
</div>
)
}
export default App
This is Child component
import React from 'react';
function Child() {
const employees = ['Williams','Steve']
return(
<div className='Child'>
</div>
)
}
export default Child
````