If we were to render this to the server, would we render the component AppWrapper?
const Provider = ReactRedux.Provider;
const connect = ReactRedux.connect;
// Define the Container component here:
const Container = connect(mapStateToProps, mapDispatchToProps)(Presentational);
class AppWrapper extends React.Component {
constructor(props) {
super(props);
}
render() {
// Complete the return statement:
return (
<Provider store={store}>
<Container />
</Provider>
);
}
};
ReactDOM.render(<ConnectedComponent />, document.getElementById("root"));
HTML
<div id="root"></div>
The display is the issue.
2021-04-14-react-redux-connect-redux-to-the-messages-app-1-.js (codepen.io)
Challenge: Connect Redux to the Messages App
Link to the challenge: