Best practices? I dunno. Current good practices, based on combined experience of a bunch Facebook and Instagram engineers (I work for Facebook)? Yeah. Best practices of today could be the anti-patterns of tomorrow. We can only try our best given the experience and knowledge we have so far. I'd avoid dogma
All the code for the book is on github,
check this out as an example of what you can expect.
Some good practices include:
small simple components that do one thingstateless components = betterone component per file, file name = component nameevery component is a JS moduleone module exports one thingmodule dependencies (require or import) defined up top in one placeone corresponding CSS file per JS component, named after it, both file name and class name prefix. E.g. .Dialog .DialogBody defined in Dialog.css. Even though the CSS discussion is a little beyond the scope of the book
Also, which version of React are you using in the book?
The latest version at the time of writing was v15.0.1