M
M
Mikhail Yarema2017-09-28 15:12:15
JavaScript
Mikhail Yarema, 2017-09-28 15:12:15

How to remove property in state REACT?

How to remove property in state REACT?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Archakov Dennis, 2017-09-28
@frezebloom

Your question is not very clear. If you are going to remove only the property from the state, then you should write a method that will receive the state, filter the property from it, and pass the new object to your state.

I
Ilya Gerasimov, 2017-09-28
@Omashu

this.setState({ key : value });

Михаил Ярема, 2017-09-28
@frezebloom Автор вопроса

Я имею введу не изменить state, а удалить свойство.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question