day8 / re-com

A ClojureScript library of reusable components for Reagent
https://re-com.day8.com.au
MIT License
796 stars 147 forks source link

Add script to convert kwargs to map with hiccup like syntax #276

Closed MawiraIke closed 3 years ago

MawiraIke commented 3 years ago

Adds script and fixes #275

The instructions to run the script are in the directory re-com/scripts/kwargs-to-map/README.md

MawiraIke commented 3 years ago

Fair to note that the re-com components are edited as follows;

is edited as follows

[button {                                                        <== the map is added
 :label    "This is the label"
 :style    {:color "red"}
 :on-click nil
 :class    "class-name" } ]
mike-thompson-day8 commented 3 years ago

The detail you provide above should be included at the end of the README

MawiraIke commented 3 years ago

Thanks @mike-thompson-day8 @superstructor I have merged your suggestions to the latest commit

superstructor commented 3 years ago

Nice, thanks @MawiraIke 👍🏻 😄