Skip to content

can't actually use style within React Component - only from the wrapping angular component #10

Description

@yossibeck

it seems that in
src/components/my-react-component/MyReactComponent.tsx
the line
import './MyReactComponent.scss'; doesn't have any effect

the real CSS happens in the wrapper, e.g. the line
styleUrls: ['./MyReactComponent.scss'],
in MyReactComponentWrapper.tsx is what does the job.
this kind of breaks the whole idea of having a separate component (e.g. code with styling) since the styling is bundled with the wrapper - not the react component

wondering if anyone was able to get around that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions