react-native-nw-react-calculator icon indicating copy to clipboard operation
react-native-nw-react-calculator copied to clipboard

Make general css

Open anorudes opened this issue 8 years ago • 2 comments

Hello, benoitvallon, it's a very nice example :+1: But i think that you may make general css for components. You may delete "styles/main.css" and transfer all styles from "main.css" to component. https://github.com/gajus/react-css-modules - a good library for this idea. Will it have a problem with this task? )

anorudes avatar Nov 14 '15 15:11 anorudes

At the beginning of the project I wanted just to focus on tools around react/react-native so that's why I stayed very classical with choices for css. As people seem to be interested in more complex tools as well in the project I think this is a great suggestion.

If you want to add it to the project, fell free to submit a PR.

benoitvallon avatar Nov 17 '15 18:11 benoitvallon

I'd rather recommend https://github.com/cssinjs/jss

It is clean and really effective. Supports media queries and basically everything CSS does.

Vadorequest avatar Feb 01 '17 22:02 Vadorequest