This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
2.0.0
[2.0.0] - 2017-07-02
Changed
styled-map
now looks for a "default" key if there are no matches. Otherwise it will use the last item in the map as in previous versions.
Added
- Sometimes you want to use the value of a prop instead of its name, like
<Button type="primary" />
. You can usestyled-map
this way by providing a string as the first argument. E.g.,styledMap('type', { ... })
.