bonham000 / fcc-react-tests-module

The original freeCodeCamp React/Redux alpha curriculum.
http://hysterical-amusement.surge.sh/
BSD 3-Clause "New" or "Revised" License
77 stars 38 forks source link

Question about Challenge-Redux 17 & 18 #204

Closed ccrubby214 closed 7 years ago

ccrubby214 commented 7 years ago

hi @bonham000 , thanks for your previous reply. I have finished the part of Redux challenge, and when I studied in Redux 17 & 18 , I found a place easy to misunderstand as below:

const wakeUp = () => { return { type: ONLINE, } };

after the K/V-type: ONLINE,there is a comma, and I know it is ok in most of browsers currently, but it still not compatible in the browsers base on the IE6~7 core; And another reason is , when I first prepared to finish the challenge, at first, I think I need to type a new K/V here as status: 'online', so I think if remove the comma will be better to understand the challenge, not only me, but also others : )

thanks

bonham000 commented 7 years ago

@ccrubby214 yes, you are totally right about that. Nice job finding this, I agree that removing the comma is probably a good move. I just updated the code to reflect this change. Thanks for bringing this up!