It's now easier to pass contents directly from parent to children components rather than using mere props that you can only pass from top to the bottom.
Is it possible for useContext to pass data from child to parent?
With useContext, you can access your data inside any component. So to pass a data from child to parent, first you load your data to pass to the parent inside the context via the child component and then you can access this data in the parent data also via the context.