Error before doing anything

Hi!

In “Use a Ternary Expression for Conditional Rendering” challenge, I get this error before writing any code:

[TypeError: Cannot read properties of null (reading 'input')]
Build error, open your browser console to learn more.


I checked this in another browser and device, one is same and other one says:

[TypeError: this.state is null]
TypeError: this.state is null

Welcome back to the forum @TheUserNameOfX

Since the code is partially written for you, you’ll need to insert the required code between the comment elements, as the state for input is not defined.

Happy coding

1 Like

Hi Teller.

After posting this I took a look on state syntax (by hint of second error, in other device) and error solved.

Thanks.

1 Like