Skip to content
JohnC-80Public

About

Testing out JSS for styling React Components

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

JSS Test

Testing out JSS for styling React Components for a reusable framework. This test uses webpack for building/execution, react-jss to package up dynamic addition/subtraction of <style> tags containing component styles.

To Run...

npm install
npm start

This will launch webpack-dev-server hosted at localhost:8080

Then open a web-browser pointed to localhost:8080

Additional Notes

JSS uses JSON objects to represent styles. The syntax is slightly different from standard CSS(border-left becomes ‘border-left’.) Camelcase, as well as other features such as Sass-like nesting can be added using jss plugins. The example uses jss-preset-default which loads up a set of common plugins (camelcase, nesting, etc). It’s very similar to coding style objects for inline styles, but with the additional freedom of media queries and pseudo-selectors.

About

Testing out JSS for styling React Components

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages