You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an attribute like href or placeholder is assigned the empty string; react-templates replaces the empty string with true
Example: placeholder="" --> {... placeholder: true ...}
A workaround is to enclose the empty-string in curly braces: {""}.
(Coming from Angular, I've become a big fan of react-templates in the last couple days. The amount of empty boilerplate and crufty JSX+JS it replaces is impressive. And the ability to step through the resulting rt.js for debugging is a lifesaver.)
The text was updated successfully, but these errors were encountered:
When an attribute like href or placeholder is assigned the empty string; react-templates replaces the empty string with
true
Example: placeholder="" -->
{... placeholder: true ...}
A workaround is to enclose the empty-string in curly braces:
{""}
.(Coming from Angular, I've become a big fan of react-templates in the last couple days. The amount of empty boilerplate and crufty JSX+JS it replaces is impressive. And the ability to step through the resulting rt.js for debugging is a lifesaver.)
The text was updated successfully, but these errors were encountered: