@ -389,7 +389,7 @@ it("changes value when clicked", () => {
});
expect(onChange).toHaveBeenCalledTimes(6);
expect(button.innerHTML).toBe("Turn on!");
expect(button.innerHTML).toBe("Turn on");
});
```
@ -404,7 +404,7 @@ Different DOM events and their properties are described in [MDN](https://develop
Your code might use timer-based functions like `setTimeout` to schedule more work in the future. In this example, a multiple choice panel waits for a selection and advances, timing out if a selection isn't made in 5 seconds:
```jsx
//card.js
//card.js
import React, { useEffect } from "react";
@ -421,7 +421,7 @@ export default function Card(props) {