amagnasco
Test-Driven React 2: missing import for useState (page 74)
Good evening @TrevorBurnham!
Here’s a minor one. When adding the first react hook on page 74, the import statement is missing from the code example.
import {useState} from "react";
Best,
Ale
First Post!
TrevorBurnham
									Author of Test-Driven React
			          
						Thanks for reporting this, Ale!
Popular Pragmatic Bookshelf topics
                        
                      
                      
                In Chapter 3, the source for index introduces Config on page 31, followed by more code including tests; Config isn’t introduced until pag...
              
            
            
          
              New
                Title: Hands-On Rust (Chapter 11: prefab) 
Just played a couple of amulet-less games.  With a bit of debugging, I believe that your can_p...
              
            
            
          
              New
                Hello! On page xix of the preface, it says there is a community forum "… for help if your’re stuck on one of the exercises in this book… ...
              
            
            
          
              New
                I am working on the “Your Turn” for chapter one and building out the restart button talked about on page 27.  It recommends looking into ...
              
            
            
          
              New
                In case this helps anyone, I’ve had issues setting up the rails source code. Here were the solutions: 
In Gemfile, change 
gem 'rails'
t...
              
            
            
          
              New
                A Common-Sense Guide to Data Structures and Algorithms, Second Edition by Jay Wengrow @jaywengrow 
Hi, 
I have the paperback version of t...
              
            
            
          
              New
                Hello! Thanks for the great book. 
I was attempting the Trie (chap 17) exercises and for number 4 the solution provided for the autocorre...
              
            
            
          
              New
                Hi, I have just acquired Michael Fazio’s “Kotlin and Android Development” to learn about game programming for Android. I have a game in p...
              
            
            
          
              New
                Hi all, 
currently I wonder how the Tailwind colours work (or don’t work). 
For example, in app/views/layouts/application.html.erb I have...
              
            
            
          
              New
                From page 13: 
On Python 3.7, you can install the libraries with pip by running these commands inside a Python venv  using Visual Studio ...
              
            
            
          
              New
Other popular topics
                        
                      
                      
                Algorithms and data structures are much more than abstract concepts. Mastering them enables you to write code that runs faster and more e...
              
            
            
              
          
              New
                Which, if any, games do you play? On what platform? 
I just bought (and completed) Minecraft Dungeons for my Nintendo Switch. Other than ...
              
            
            
          
              New
                SpaceVim seems to be gaining in features and popularity and I just wondered how it compares with SpaceMacs in 2020 - anyone have any thou...
              
            
            
          
              New
New
                Small essay with thoughts on macOS vs. Linux:
I know @Exadra37 is just waiting around the corner to scream at me “I TOLD YOU SO!!!” but I...
              
            
            
          
              New
                Rails 7 completely redefines what it means to produce fantastic user experiences and provides a way to achieve all the benefits of single...
              
            
            
              
          
              New
                I am trying to crate a game for the Nintendo switch, I wanted to use Java as I am comfortable with that programming language. Can you use...
              
            
            
          
              New
                Author Spotlight: 
Bruce Tate 
@redrapids 
Programming languages always emerge out of need, and if that’s not always true, they’re defin...
              
            
            
          
              New
                Jan | Rethink the Computer. 
Jan turns your computer into an AI machine by running LLMs locally on your computer. It’s a privacy-focus, l...
              
            
            
              
          
              New
                Develop, deploy, and debug BEAM applications using BEAMOps: a new paradigm that focuses on scalability, fault tolerance, and owning each ...
              
            
            
              
          
              New
Categories:
Sub Categories:
Popular Portals
- /elixir
 - /rust
 - /ruby
 - /wasm
 - /erlang
 - /phoenix
 - /keyboards
 - /python
 - /rails
 - /js
 - /security
 - /go
 - /swift
 - /vim
 - /clojure
 - /emacs
 - /haskell
 - /java
 - /svelte
 - /onivim
 - /typescript
 - /kotlin
 - /c-plus-plus
 - /crystal
 - /tailwind
 - /react
 - /gleam
 - /ocaml
 - /elm
 - /flutter
 - /vscode
 - /ash
 - /html
 - /opensuse
 - /centos
 - /php
 - /zig
 - /deepseek
 - /scala
 - /lisp
 - /sublime-text
 - /textmate
 - /react-native
 - /nixos
 - /debian
 - /agda
 - /kubuntu
 - /arch-linux
 - /django
 - /deno
 - /ubuntu
 - /revery
 - /manjaro
 - /nodejs
 - /spring
 - /diversity
 - /lua
 - /julia
 - /slackware
 - /c
 
    





