Implement the root reducer for the reactified snippet preview and content analysis.
The root state would look like this:
const rootState = {
snippetPreview: {
// Whether or not the mobile preview is active.
mobileIsActive: true,
// Whether or not the desktop preview is active.
desktopIsActive: false,
// The content of the SEO Title input field.
SEOTitle: "",
// The content of the slug input field.
slug: "",
// The content of the meta description input field.
metaDescription: "",
},
analysis: {
seo: {
byKeyword: {},
readability: []
}
},
We need the following reducer:
rootReducer: combines all reducers from yoast-components (for now the snippetPreviewReducer and the contentAnalysisReducer)
Implement the root reducer for the reactified snippet preview and content analysis.
The root state would look like this:
We need the following reducer:
snippetPreviewReducer
and thecontentAnalysisReducer
)