Home / Admin / om-reactv3.js
Duplicate Snippet

Embed Snippet on Your Site

om-reactv3.js

Code Preview
js
// Using React Router V3
import { browserHistory } from 'react-router';
class App extends React.component {
    componentDidMount() {
        this.unlisten = browserHistory.listen( location => {
            if (window.om5678_1234) {
                window.om5678_1234.reset();
            }
        });
    }
    componentWillUnmount() {
        this.unlisten();
    }
    render() {
        return (
'<div>'{/* Your routes defined here. */}'</div>';
        )
    }
}

Comments

Add a Comment