React Fundamentals Quiz

Question 1 of 5
Total Time Remaining
0:10:00
easy
ID: 8ebd53af-f2f9-4479-ace4-deca9e23874b

What is the correct way to initialize state lazily when the initial value is expensive to compute?

A
useState(computeValue());
B
useState(() => computeValue());
C
useState(computeValue);
D
useState(async () => computeValue());