问题
I have Listval function in parent component "Navbar", that i like to pass on as props to child component "Menu" as Listvalll. But it does not work.
I intend to bring it as props for on click in Modal of the Menu component. The function works ok when it is run within Menu, but is not working when i pasted it in the parent component. Please see the sandbox:
https://codesandbox.io/s/relaxed-shape-omjsc
来源:https://stackoverflow.com/questions/62584816/async-function-is-not-working-when-pass-on-as-props