How do I access a JSON property that contains a hyphen in React?

Asked

Viewed 12 times

0

All right?

I have a question and a problem!!! I believe the title speaks for itself.... But how do I access a Json property that contains React hyphen?

Example of how the property can be:

{
  'nome-de-primeiro': 'Josefina',
  'nome-segunda':'Souza'
}

every time I put the .nome-de-primeiro in React, he tells me that I am not defining the de and the primeiro....

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.