For an example, to set a style in react you could do
var css = {color: red}
and
Hello world
If you don't use the variable css, the JSX could look like this:
Hello world
I guess you are confused about the double curly braces.
so you know that the curly braces in JSX means process the inner value in JavaScript, so the outer braces is used exactly for this purpose.
But the style property accepts an object. And an object also needs another pair of curly braces to wrap it up. That's the purpose for the inner ones.