sinclairnick / brail

💌 Transactional email that feels different
https://brail.dev
Apache License 2.0
258 stars 6 forks source link

Prevent undefined props overriding previously set props #33

Open sinclairnick opened 1 year ago

sinclairnick commented 1 year ago

Currently, theming may have a value set, e.g. backgroundColor, that gets overwritten when setting e.g. backgroundColor={undefined}. This is annoying and requires writing ...{ A ? {...} : undefined}-type code. Implement better prop merging to prevent this behaviour.