v1.0.0
Breaking changes 🚨🚨🚨
The 1.0.0 version has the following breaking changes:
PrivateRoute
and AuthorizedRoute
no longer accept a component
as property.
You should now upgrade as follows:
From:
<AuthorizedRoute component={AdminPage} path="/admin" authorizer={someFunction} />
<PrivateRoute component={AdminPage} path="/" />
To:
<AuthorizedRoute path="/admin" authorizer={someFunction}>
<AdminPage />
</AuthorizedRoute>
<PrivateRoute path="/">
<AdminPage />
</PrivateRoute>