Upgrading from JSS 13.0 to JSS 14.0
- Update peer dependencies version.
- Update all @sitecore-jss/* packages to the latest 14.x version.
- React application:
- Check all usages of
withSitecoreContext
:- If you extend
ComponentConsumerProps
usingwithSitecoreContext<T>
, so component will have set of props that extendComponentConsumerProps
interface, not implement onlyComponentConsumerProps
as it was.
- If you extend
- Check all usages of
Placeholder
component:- You can return
ReactElement
in functions:render
,renderEach
,renderEmpty
- Check
renderEach
function implementation, now it has correct declaration(component: React.ReactNode, index: number): React.ComponentClass<any> | React.SFC<any> | React.ReactNode
- You can return