Files
freeCodeCamp/common/app/components/NotFound/index.jsx
Berkeley Martinez 8ef3fdb6a0 Initial move to redux
2016-03-03 17:53:33 -08:00

27 lines
447 B
JavaScript

import React, { PropTypes } from 'react';
const win = typeof window !== 'undefined' ? window : {};
function goToServer(path) {
win.location = '/' + path;
}
export default class extends React.Component {
static displayName = 'NotFound';
static propTypes = {
params: PropTypes.object
};
componentWillMount() {
goToServer(this.props.params.splat);
}
componentDidMount() {
}
render() {
return <span></span>;
}
}