Guard adapter for React.js