import React from "react";

const ClickMe = ({ sections, pages }) =>
  <div onClick={() => console.log("clicked", sections, pages)}>
    Click me and see the console
  </div>;

export default ClickMe;

import React from "react";

class ClickMe extends React.Component {
  constructor(props) {
    super(props);

    this.state = {
      showMessage: false
    };
  }
  render() {
    const { showMessage } = this.state;

    console.log(this.props);

    return (
      <div>
        <div onClick={() => this.setState(() => ({ showMessage: true }))}>
          Click me!
        </div>
        {showMessage && <div>You clicked!</div>}
      </div>
    );
  }
}

export default ClickMe;

Make smoketest a little nicer
chore: Make smoketest a little nicer
