![React Testing Library: Learn by Coding](/img/screen-shot-2022-05-08-at-8.42.37-pm_hu61d83e0e4c7d285f7893ad3d69f8e97b_505390_0x250_resize_q75_h2_box_2.webp)
React Testing Library: Learn by Coding
I’d like to code a simple React “mini jeopardy” game. I will use the React Testing Library to test each of the components. To summarize the game, you get presented with 5 “cues”, click on one and answer it. The game calls the http://www.jservice.io API and makes use of their clues endpoint to return data from the year 1996 in the science category. It picks 5 random valid cues from the first set and sorts them according to their value.