My javascript calculator built with react hooks is not passing any of the tests but works just fine. Can I still submit it? Do you see any errors?
Right…
but I did complete all of the user stories. For instance, " 1. My calculator should contain a clickable element containing an “=” (equal sign) with a corresponding id=“equals”" in my code:
In Calculator.js
<EqualBtn id="equals" />
In Equals.js
const EqualBtn = () => {
const { doMath } = useContext(NumberContext);
return (
<button type="button" className="equal-btn" onClick={() => doMath()}>
=
</button>
);
};
export default EqualBtn;
I’m not sure why my code is not passing the tests.