Javascript Calculator - support for React Hooks?

Does anyone know if the test suite for the Javascript Calculator project under the Front End Dev. course supports React Hooks?
I saw the example uses class components for React.

I am using this for my Clear button:
onClick={() => {setDisplay(0)}}

This does set my display to 0 properly, as I am watching it with UseEffect, but this button fails in the test suite. All my number buttons are failing as well, even know they work in the App (again watching this in useEffect, as well as on the result in the browser window).
Thanks All!

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36

Challenge: Build a JavaScript Calculator

Link to the challenge:

Hello there,

The test suite does support all React 17 features - hooks included.

We are investigating an issue with React 18:

If you are using React 18, I suggest you downgrade.

Hope this helps

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.