Last active
February 7, 2020 08:23
-
-
Save toxi-kb/c4b6878ffceb12cb38e04e2fb6be1e7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const stylesObject = { | |
| wrapper: { | |
| 'background': 'linear-gradient(135deg, #aa00ff 0%,#6a1b9a 100%)', | |
| 'border-radius': '4px', | |
| }, | |
| } | |
| const styles = Object.fromEntries(Object.entries(stylesObject).map(([element, style]) => [element, getStyles(style)])); | |
| <div style="${styles.wrapper}"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment