freeCodeCamp/common/app/components/NotFound/index.jsx

23 lines
484 B
JavaScript
Raw Normal View History

2015-11-20 06:45:31 +00:00
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { hardGoTo } from '../../redux/actions';
2015-11-20 06:45:31 +00:00
export class NotFound extends React.Component {
2016-01-27 19:34:44 +00:00
static displayName = 'NotFound';
static propTypes = {
location: PropTypes.object,
hardGoTo: PropTypes.func
2016-01-27 19:34:44 +00:00
};
2015-11-20 06:45:31 +00:00
componentWillMount() {
this.props.hardGoTo(this.props.location.pathname);
2016-01-27 19:34:44 +00:00
}
2015-11-20 06:45:31 +00:00
render() {
2016-08-03 17:25:31 +00:00
return <span />;
2015-11-20 06:45:31 +00:00
}
2016-01-27 19:34:44 +00:00
}
export default connect(null, { hardGoTo })(NotFound);