jsx-curly-braces
Recommended
Ensure consistent use of curly braces around JSX expressions.
Ensure consistent use of curly braces around JSX expressions.
Invalid:
const foo = <Foo foo=<div /> />;
const foo = <Foo str={"foo"} />;
const foo = <div>{"foo"}</div>;
Valid:
const foo = <Foo foo={<div />} />;
const foo = <Foo str="foo" />;
const foo = <div>foo</div>;