Files
freeCodeCamp/common/app/components/NotFound/index.jsx
2016-07-28 23:40:01 -07:00

23 lines
489 B
JavaScript

import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { hardGoTo } from '../../redux/actions';
export class NotFound extends React.Component {
static displayName = 'NotFound';
static propTypes = {
location: PropTypes.object,
hardGoTo: PropTypes.func
};
componentWillMount() {
this.props.hardGoTo(this.props.location.pathname);
}
render() {
return <span></span>;
}
}
export default connect(null, { hardGoTo })(NotFound);