I'm new reactjs I'm trying to save data that I got from server like object(array) but I can't.
at render() function, what should I do to save data, I don't wanna display, just save to users (array) or something? I think that I should use "map" but I don't know how to do. Next, I wanna save users to model.data like this. help me.


Since you just started using react, try using React Hooks instead of class style components. It's the recommended way.
If you just want to store the data without displaying anything you need somekind of a encapsulated/shared state. For example
reduxorcontextcan help you with that. Since context is in-built and easier to use, here is an example:First create a context
users-context.js
Now create a custom hook to store your state.
useUsers.js
Then provide the context so every component in your app has access to that context.
App.jsx
If you want to use the state in a component, e.g. a profile page do this:
profile-page.jsx