This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from 'react'; | |
| import { connect } from 'react-redux'; | |
| import AppType from 'apps/appType'; | |
| import AppState from 'apps/state'; | |
| interface Props { | |
| name: string; | |
| } | |
| const Component: React.SFC<Props> = ({ name }) => <div>{name}</div>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Component from './Component'; | |
| import { connect } from 'react-redux'; | |
| import { compose } from 'redux'; | |
| import hidable from 'hof/hidable'; | |
| import awesomeHof from 'hof/awesome'; | |
| export default compose( | |
| connect<StateProps, DispatchProps, {}>(mapStateToProps, mapDispatchToProps), | |
| awesomeHof, | |
| hidable |