-
I want to add a method to useThemeUI hook, how can i do that? |
Beta Was this translation helpful? Give feedback.
Answered by
hasparus
Sep 24, 2020
Replies: 1 comment 1 reply
-
I suppose the simplest way would be using composition export function useTheme() {
const value = useThemeUI()
return {
...value,
foo() {
// here
}
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
moecasts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suppose the simplest way would be using composition