Answer the question
In order to leave comments, you need to log in
How to apply multiple styles at once?
The Item component implements the logic: by clicking on the task - it is crossed out (completed), by clicking on the "important" button - the text becomes bold, at the same time the task can be important and completed or only important or completed. How to implement such logic?
https://codesandbox.io/s/9p1mql0r4
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question