### Current Situation Currently, there is no way to tie CSS to a specific component, such as [React CSS Modules](https://create-react-app.dev/docs/adding-a-css-modules-stylesheet/) ### Proposed Actions There are [several different ways](https://www.youtube.com/watch?v=ouncVBiye_M) of handling this problem. The method most applicable to IDOM would likely be similar to [NextJS's styled JSX](https://nextjs.org/blog/styling-next-with-styled-jsx). In the context of IDOM, it may look like this... ```python @component def MyComponent(): return html.div( html.style("...", scoped=True), html.button(), ) ``` ### Work Items - Create a method of scoping CSS to a specific component definition
Activity
Archmonger commentedon Aug 16, 2022
Closing in favor of #778