V
V
Vlad Gromov2019-02-16 11:48:31
JavaScript
Vlad Gromov, 2019-02-16 11:48:31

Text color not changing in React app. How to fix?

I'm taking a course from Udemy on React,
in the example the author changes the color in the span element depending on important ,
if true then the color is tomato , if false then the color is black .
I repeated the code exactly, but I do not change the colors of the text.
At the same time, in the "Developer Tools" it gives the following:
Write a good application on React
It turns out that the browser does not understand the value passed to style?
How to fix?
5c67ce1ad5fe1716217016.png5c67ce21c29dc731530248.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-02-16
@Vikkiners

The typo is that in the TodoListItem component, instead of style, you have slyle.
Well, this is for the future - it is customary to place the code here in the form of text, not pictures.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question