import React from "react";
import { connect } from "react-redux";
import { divide } from "./actions";
import "./styles.css";
const Test2 = ({ num, divide }) => {
console.log(num, "tratata");
return <div onClick={divide}>Component: {num}</div>;
};
const mapStateToProps = state => ({ num: state });
const mapMethodsToProps = {
divide
};
export default connect(
mapStateToProps,
mapMethodsToProps
)(Test2);