Skip to content

This is a webpack loader to give you the freedom to use class instead of className in your JSX

License

Notifications You must be signed in to change notification settings

VoidCanvas/class-to-classname

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

class-to-classname

This is a webpack loader to give you the freedom to use class instead of className in your JSX Using this is very simple.

####Step 1:

npm install class-to-classname --save-dev

####Step 2: Use it in your webpack configuration file.

module: {
	loaders: [
		{
			test: /\.jsx?$/,
			exclude: /node_modules/,
			loader: "class-to-classname"
		}
	]
}

####Step 3: Now you can use class instead of className in your jsx or js files.

render(){
	return <img class="myClass" />
}

About

This is a webpack loader to give you the freedom to use class instead of className in your JSX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published