Skip to content

JohnC-80/jssTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published