I am learning React and JavaScript.
I have this Redux Store that looks like this very simple:
const initialState = {
booksList: [],
progress: false,
faild: "",
log: ""
};
When I do mapStateToProps to my Component then I don't get a log='' but I get something else. Basically what I try to do is this if(log != "") as the image show but I get a true when I want to get a false because initial Store is empty.
As the image show the log also contains a function the Redux store dispatch.

Currently the
logparameter corresponds to your component properties (containing two propertiesloganddispatch)You must declare your component like this :
or like this