Skip to content

matkrzy/rwdclassnames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rwdClassNames

Hook for react

Example of usage

const { classNames, elementRef } = useRwdClassNames({
   rules: { '>600': 'red' },
 });

When width of the window or element provided by elementRef is wider than 600px the classNames is red otherwise it is empty string

About

Hook for window or element width which can apply defined class names

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors