2 ms·
Now I am confused. Why the {{}} at all and not just: <div className="row" style="margin": "0">
by TekMol 9y ago
Now I am confused. Why the {{}} at all and not just:
<div className="row" style="margin": "0">
- heavenlyblue 9y agoYou may use both of the syntaxes; but the former allows to easily inject JS variables directly, rather than by interpolating strings. For example: var userParagraphMarginSetting = '5em'; styles={{ marginLeft: userParagraphMarginSetting }} Against: var styles='marginLeft:'+userParagraphMarginSetting; styles={styles}