unstated-next
unstated-next copied to clipboard
Can we pass just functions or states to a component
Is it possibble to pass only functions to a component or can i pass just the states? Like redux mapDispatchToProps and mapDispatchToState functions. For example, if have a component containing just buttons to change state, and i don't want to rerender the component containing buttons, what should i do then? Thanks.
I'm confused about that, too