I
I
Ibishka2020-07-20 00:01:16
React
Ibishka, 2020-07-20 00:01:16

Is it possible to use custom object in React js?

I have filters when a user, for example, selects a color, I insert values ​​into my query object, and I insert the object itself into an ajax request, so according to React rules, should I use state ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TRNER, 2020-07-20
@TRNER

You can use your own objects in react. In state, for good, you need to store only the data that should be reactive.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question