79319260

Date: 2024-12-31 05:51:21
Score: 1
Natty:
Report link

Using act, while not always necessary is good practice when updating state or testing rendered components, since it "makes your test run closer to how React works in the browser" (docs) by making sure that rendering happens before any assertions.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Zelkins