Answer the question
In order to leave comments, you need to log in
How to validate props?
Good day.
While studying React, I wrote a self-made carousel. And I thought that I was the most cunning and when I received props in componentWillMout I validated them, corrected them if necessary and wrote to the state. Only later I found out that writing props to the state is a bad idea.
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