Using styled-map's mapToTheme function to dynamically set the styles in the base styled components from the theme prop. This allows a theme to be defined and passed down via context through the <ThemeProvider /> while falling back on defaults by setting default styles through the defaultProps property.
Using
styled-map
'smapToTheme
function to dynamically set the styles in the base styled components from thetheme
prop. This allows a theme to be defined and passed down via context through the<ThemeProvider />
while falling back on defaults by setting default styles through thedefaultProps
property.