In JavaScript, JSX double brackets {{ foo: bar }} are used
when passing object literals to an element.
Example:
// for example, when passing the color attribute to style inline, as an object literal
<div style={{ color: blue}}></div>JSX is a syntax extension to JavaScript.
For more on JSX: https://reactjs.org/