Hello,
At the end of the code of this exercise we have this:
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>
);
}
};
And at the end of the following and also ending exercise we have this:
const Container = connect(mapStateToProps, mapDispatchToProps)(Presentational);
class AppWrapper extends React.Component {
render() {
return (
<Provider store={store}>
<Container/>
</Provider>
);
}
};
This const are deleted, Why ?
const Provider = ReactRedux.Provider;
const connect = ReactRedux.connect;
And this are deleted of the AppWraper, why ? maybe a hook ?:
constructor(props) {
super(props);