reagent

A minimalistic ClojureScript interface to React.js http://reagent-project.github.io/
Александр Стоянов 2020-10-31T07:08:21.171800Z

Hello! Can someone help me? Try to build a table and wrote this: [:div {:id "table"} [:table {:style "width:100%"} [:thead [:tr [:th "Name"] [:th "Gender"] [:th "Birth date"] [:th "Address"] [:th "OMS"]]] [:tbody [:tr [:td "a"] [:td "b"] [:td "c"] [:td "d"] [:td "e"]]] ] ] In browser's console i get The above error occurred in the <table> component: in table (created by grump2.views.main_panel) in div (created by grump2.views.main_panel)

Lucy Wang 2020-10-31T07:13:51.172400Z

you should at least paste the content of "the above error" here.

Александр Стоянов 2020-10-31T07:18:14.173700Z

There's very long logtrace. Am i need to put that here?

p-himik 2020-10-31T08:21:57.175400Z

We need not the mention of "the above error", but the error itself. Which should be, well, above. A summary of the error should be sufficient. You can still paste the whole stacktrace by using the text snippet feature of Slack.

👍 1
p-himik 2020-10-31T08:25:52.176200Z

I didn't check it but my current guess is that strings in :style are not supported. You can try replacing "width:100%" with {:width "100%"}.

1