You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
366 B

'use strict';
import React, {Component} from 'react';
import Calc from '../components/calc';
import {connect} from 'react-redux';
class CalcApp extends Component {
constructor(props) {
super(props);
}
render() {
const {state} = this.props;
return (
<Calc state={state}/>
);
}
}
export default connect(state => ({
state: state.calc
}))(CalcApp);