Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@itsmepetrov itsmepetrov released this 16 Jul 09:52

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 👍