Value must be omitted for boolean attributes
101 ];
102
103 return (
104 <ClientShell hasNavigation={true}>105 <MainHeader></MainHeader>
106 <MainNavigation links={navigationLinks}></MainNavigation>
107 <AppShellMain>{children}</AppShellMain>
Description
When using a boolean attribute in JSX, you can set the attribute value to true or omit the value. This helps to keep consistency in code.
Bad Practice
var Hello = <Hello personal={true} />;
Recommended
var Hello = <Hello personal />;