JSFiddle - React, Tailwind, and code Playground by zerippe October 25, 2018 JavaScript const a = "aa"; const b = "bb"; const c = { [a]: b }; console.log(c);