React Programming

Author: Loren Klingman and Ashley Parker
Publisher: Big Nerd Ranch Guides
Date: April 2023
ISBN:978-0137901760
Print:0137901763
Kindle:B0C4V69S8Z
Audience: Front end devs
Rating: 4
Reviewer: Ian Elliot
React is difficult to master, so a book can really help.

First the bad news - Big Nerd Ranch, the publishers of this book, has stated it is closing down both as a training organization and a publisher and isn't not planning on releasing any more books or new editions. It plans to allow current editions to slowly go out of print as they age. This is sad but understandable as the market for technical books is very depressed. For the moment this doesn't affect this particular book as it is on a current version of React and doesn't go too deep.

This is quite a large book and this in itself says something about React and possibly all of the frameworks we use. A good framework should be so obvious that its principles can be explained in a few pages. This book isn't focused on principles more on showing you how things are done. It uses lots of code to demonstrate how to use React. 

 

Banner

One unusual feature - well I have never encountered it before - is the use of strike-through to indicate which lines should be deleted in generated code. The idea is that you are starting from boilerplate code and need to know how to edit it to do what you want. In many cases, however, especially at the start nearly all of the code is deleted and only one or two lines added. I can't say I  found this approach particularly enlightening. The problem is that I couldn't see the good code for the bad. It just got in the way of seeing what the program was doing. I much prefer to have the correct code listed and work out for myself what to delete in the boilerplate code - it is usually obvious and I can deduce the changes or just replace all of the code by the listed code. You might not agree.

The book starts off with some very basic stuff about installing and using VS Code and Chrome before getting started proper. Chapter One is where the real learning about React starts and its a hands on to create a simple web app - ottergram. This uses the development server to generate the code and this is where we first encounter the idea of using strike-through to modify generated code:

react.jpg

 I don't think that you would get much from reading this chapter or indeed any part of the book without actually trying the activities out. This is very much a "learn by doing" book. 

From here the book moves though the topics needed to use React - Components and JSX, User Events, State, using the Linter, prop types, styles, using the server, routing, conditional rendering, useReducer, creating a shopping cart, forms in general, sumitting orders, component composition, context, fulfilling orders, optimizatio, testing and so on.

Overall this is a good book but only if you are happy with a hands on method of learning that is probably not as fast as a concept learning approach. 

For recommendations of JavaScript books see JavaScript Beginners Book Choice and Advanced JavaScript Book Choices in our Programmer's Bookshelf section.

 

To keep up with our coverage of books for programmers, follow @bookwatchiprog on Twitter or subscribe to I Programmer's Books RSS feed for each day's new addition to Book Watch and for new reviews.

Banner


The Rust Programming Language, 2nd Ed

Author: Steve Klabnik and Carol Nichols
Publisher: No Starch Press
Date: June 2023
Pages: 560
ISBN: 978-1718503106
Print: 1718503105
Kindle: B0B7QTX8LL
Audience: Systems programmers
Rating: 4.8
Reviewer: Mike James

There's a new edition of what has become the standard text on Rust. Has it matured along with [ ... ]



Functional Programming in C#, 2nd Ed (Manning)

Author: Enrico Buonanno
Publisher: Manning
Date: February 2022
Pages: 448
ISBN: 978-1617299827
Print: 1617299820
Kindle: B09P1Z2PPB
Audience: C# developers
Rating: 5
Reviewer: Mike James
Is C# a good language for functional programming?


More Reviews

Last Updated ( Wednesday, 03 July 2024 )