benoitvallon / react-native-nw-react-calculator

Mobile, desktop and website Apps with the same code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make general css

anorudes opened this issue Β· comments

commented

Hello, benoitvallon, it's a very nice example πŸ‘
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? )

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.

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

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