'use strict';

import React, { Component } from 'react';
import ReactCSS from 'reactcss';

class FloatingButton extends Component {
  classes() {
    return {
      'default': {

      },
    };
  }

  render() {
    return <div>
      <button>Item</button>
    </div>;
  }
}

export default ReactCSS(FloatingButton);

'use strict';

import React, { Component } from 'react';
import ReactCSS from 'reactcss';

class FloatingButton extends Component {
  classes() {
    return {
      'default': {

      },
    };
  }

  handleClick = () => this.props.onClick && this.props.onClick();

  render() {
    return <div onClick={ this.handleClick }>
      <a is="floatingButton">Item</a>
    </div>;
  }
}

export default ReactCSS(FloatingButton);

Update floating button to use handleClick callback
Update floating button to use handleClick callback
