Open kristianmandrup opened 8 years ago
@kristianmandrup I was thinking the same thing, but stumbled across the final answers in the project here: https://github.com/awkay/om-tutorial/tree/master/src/main/om_tutorial. For your question, you should check out the ui.cljs
file.
One thing I found out is where you have:
(let [{:keys [people]} (om/props this)]
it should be:
(let [people (-> (om/props) :people)]
I'm still trying to figure out what the heck the ->
does and what the difference is between that and ->>
:grimacing:
I apologize, but I don't have time to work on the tutorial at the moment, nor do I have time to answer general questions. The tutorial is a public resource, but it is incomplete and unsupported.
In general if you have questions you should join the Slack Clojurians, and join the #om channel. There are many friendly and helpful people there that can answer questions.
@kristianmandrup you are almost right, you'll want to prefer this for "bolding" the text `(dom/span (when checked
name)`
I have the following solution to UI exercises, not sure if they are correct?
Just playing and learning ;)
I sometimes get:
Each child in an array or iterator should have a unique "key" prop. Check the render method of
om_tutorial$B_UI_Exercises$PeopleWidget. See https://fb.me/react-warning-keys for more information.
Not sure why this happens and how to fix it? Thanks :)