In this lesson we try on the updated renderWithContext
function. The updated version allows preloadedState
to be passed in as its second argument and return a store
property which we destructure off of the response.
Because we don't have access to the store until after we render any data we want our components to access on initial render will we need to be included it as part of the preloadedState
.