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

PHOTO EMBED

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

Saved by @MattMoniz #javascript

  var id = "sth";

 { [id]: else }
content_copyCOPY

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