Skip to content

Tag: dictionary

JAVASCRIPT DICTIONARY CREATION DYNAMICALLY

I am back-end developer , and i had to work with Frot-end a little ,but i am stuck in one problem.I am getting data from api and want my data to be stored in this way: Api call looks like this : So , i tried to use map and dict function like this to make dict like above ,but

setting state within nested response

I am building a react app and I am setting the state with api of nested response of nested state But the state is not setting the way I want. response that is receiving from api App.js What is the problem ? Images are not showing after Title. I am trying to show all images in BlogList class of every