Skip to content

best practice for using a ThemeProvider #982

@souporserious

Description

@souporserious

Hello, we are using a React component kit at my work that requires each top-level React tree to be wrapped in a ThemeProvider component in order to apply proper theming to each component. Our app, in particular, isn't a SPA which the Provider pattern seems to be more catered to so I was curious if there are any blessed patterns in Rails on how to go about this? Should we roll our own react_component helper that wraps the component or is there some type of hook we could possibly use? Any guidance you can provide is greatly appreciated 🙏.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions