Answer the question
In order to leave comments, you need to log in
React how to render multiple elements in one JSX element?
I have a functional theme component that is a theme provider (AppThemeProvider) and a separate AppThemeButton component to change the theme. It is possible to place these 2 components in one (AppTheme) so that when writing AppTheme.Provider, the theme provider is returned, and when writing AppTheme.Button, the theme change button. It is desirable that this component be functional, not class-based.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question