JSFiddle - React, Tailwind, and code Playground JavaScript var dic = {}; dic['AA'] = {'aaa':'bbb'}; console.log(dic['AA']['a'+'aa']) //