I am using react-stormpath with react. Whenver I am using strormapath router in place of react router, it's giving me an error.
stormpath router i am importing like this:-
import ReactStormpath, {Router,HomeRoute, LoginRoute, AuthenticatedRoute } from 'react-stormpath';
Error: Objects are not valid as a React child (found: object with keys {path, component, getChildRoutes, indexRoute}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of
Router
.
Thanks in advance