Releases: itsmepetrov/classnames-loader
Releases · itsmepetrov/classnames-loader
v2.0.0
Changes
- Now you can access the class names just as you would do that with css-modules:
import { Component } from 'react';
import styles from './submit-button.css';
export default class SubmitButton extends Component {
render () {
let text = this.props.store.submissionInProgress ? 'Processing...' : 'Submit';
return <button className={styles.submitButton}>{text}</button>;
}
}
- Exported function marked as cacheable
Special thanks to @padcom for this release 👍
Initial release v1.0.0
Update README.md