Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS imports possible? #70

Open
dionjwa opened this issue Apr 20, 2017 · 2 comments
Open

CSS imports possible? #70

dionjwa opened this issue Apr 20, 2017 · 2 comments
Labels

Comments

@dionjwa
Copy link

dionjwa commented Apr 20, 2017

Is there a way to import css then use it?

E.g. one example I'm working with does this:

import styles from './InfiniteLoader.example.css'

Then refers to the CSS later on in JSX:

className={styles.List}

Is this possible (or even desirable) in haxe-react?

@elsassph
Copy link
Contributor

elsassph commented Apr 21, 2017

This isn't a React feature, but rather a Webpack one. This is the job for a CSS library, and it would certainly be cool.

Someone did an implementation close to what you're describing, including type-safe classnames:

@elsassph
Copy link
Contributor

elsassph commented Oct 3, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants