The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

easante (110) [Avatar] Offline
#1
I have just taken a cursory glance through the book, and I have seen that in the first four chapters, React.createClass is used, a construct which is deprecated. Could the author explain why he chose to use constructs that are deprecated? Is he going to update the book to remove all the deprecated materials?
409259 (6) [Avatar] Offline
#2
similarly React.PropTypes which is used extensively throughout the book is being deprecated.
https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html
https://facebook.github.io/react/warnings/dont-call-proptypes.html

I wonder if the book will reflect these changes.
mark (60) [Avatar] Offline
#3
Hi!
Thanks for posting! Any use of React.createClass will be removed before final release of the book. The reason it's in there at all is that at the time I started writing, there was still a heavy dependency on the babel toolchain to transpile ES2015+ code and I felt it would be difficult to have to learn an entire tooling solution *and* React *and* ES6 (which was still relatively new at the time, having only been formalized 6 mo. before) at the same time, so I opted for createClass. Since then, however, it's been marked for deprecation and so I will happily follow suit smilie Thanks!
mark (60) [Avatar] Offline
#4
Also, PropTypes will be moved to reference the prop-types package smilie
409259 (6) [Avatar] Offline
#5
I see that the latest update already includes these changes! Thank you Mark for keeping it all up to date
easante (110) [Avatar] Offline
#6
Thanks very much for your explanation.
mark (60) [Avatar] Offline
#7
No problem!