Answer the question
In order to leave comments, you need to log in
How to display an object in jsx?
I get into the variable structure oject of the form
firstName:"Ivan"
lastName:"Ivanov"
The fields of the object can be different. and now I want to pass its parameters to enumerations in the component, if with arrays it is possible to display everything through map, then what about objects?
Here's how the array works
return (
entities.data.map(entity =>
<Entity requestDeleteEntity={requestDeleteEntity} entity={entity} key={entity._id} />
)
);
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