I need to check whether some props (from redux store) is an empty object or not. If it is empty, I want the page to redirect to another page and not bother to call ren
ren
You could use the Redirect component of react-router within render.
import { Redirect } from 'react-router' render(){ (checkIfObjectEmpty)?: }