Skip to content

Releases: itsmepetrov/classnames-loader

v2.0.0

16 Jul 09:52
Compare
Choose a tag to compare

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>;
  } 
}

Special thanks to @padcom for this release 👍

Initial release v1.0.0

20 Nov 10:46
Compare
Choose a tag to compare
Update README.md