C
C
ch-aqwer2019-12-22 14:08:51
JavaScript
ch-aqwer, 2019-12-22 14:08:51

How to work with JSON API on the client side?

Good afternoon! Question about JSON API on the client side, what do you need to know to properly use this api on the client? How can I make my life easier with it?)
So far, I don’t really understand the advantages of this api over the rest itself, since a rather large object comes from the server that needs to be redone to fit your needs, and this is a bit resource-intensive. This is the moment that worries me the most.
Frontend stack - react/redux.
I read the documentation, but I would also like to hear the advice of experienced people on this topic)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2019-12-22
@hzzzzl

how big is the object, and how resource-intensive?
if with redax, then in the component in componentDidMount(), dispatch the action that will bring json, convert it to the desired format in the same place, and add an object of the desired format to the redax store, I don’t see another option

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question