I think there is a structural issue. You should place your "handleDataChange" function and shared data in your parent component (in this case, App.jsx). Otherwise, if you prefer not to share the data through the parent component, you could use React Context instead. Here is a link to documentation about context https://react.dev/learn/passing-data-deeply-with-context