As a good example, consider react component like this:
const MyComponent = (props) => {}
In the above component, we can access to the children of props like this:
const MyComponent = ({count, value, ...rest}) => {}
And using ...rest, we can have unlisted children, too.
my question is that is there any way to access all of the children with and without using props? something like this:
const MyComponent = ({count, value } = props) => { // I know this is wrong, it's just an example
return <>{props.count} {value} {props.someThingNotListed} </>
// getting able to access to destructed child direclty or by using props if we want
}