javascript - Adding brackets [] to the attribute in setState - Stack Overflow

PHOTO EMBED

Tue Apr 27 2021 00:58:17 GMT+0000 (Coordinated Universal Time)

Saved by @MattMoniz #javascript

  { ["sth"]: else }
content_copyCOPY

https://stackoverflow.com/questions/49437859/adding-brackets-to-the-attribute-in-setstate