helix

2022-05-20T09:29:06.541289Z

I'm not, because j/lit is taking a clojure vector, which is interpreted as an Array (no ordering issues). The problem with stitches and css happens at root level when they make resets, at deeper levels the maps are well behaved semantically. its like {'green' 'this, 'red' 'that'}

👍🏻 1
yura parenyuk 2022-05-20T16:29:15.702749Z

Hello folks, nice to meet you. I'm really in need of helps for installing helix + react.js. I've attached the screenshot what I'm getting after npm install, npm start. Please help me and let me know if anyone need more info. thanks in advance.

lilactown 2022-05-20T16:30:34.802719Z

looks like a code error

yura parenyuk 2022-05-20T16:34:04.840659Z

Thanks for reaching out to me @lilactown, Would it be possible for you to review my codebase for a while? I can share my github repo with you.

lilactown 2022-05-20T16:35:17.715099Z

I might not get to it for awhile. are you using some external React component library?

yura parenyuk 2022-05-20T16:36:56.105309Z

Yes, syncfusion ones.

yura parenyuk 2022-05-20T16:38:18.792429Z

https://stackblitz.com/edit/react-psffao-aqb4ns?file=index.js

lilactown 2022-05-20T16:43:52.932309Z

you're likely importing those components incorrectly, the error says that it got an undefined value when it expected a React component

lilactown 2022-05-20T16:44:38.872759Z

try logging the components you're bringing in, and fiddling with the way you require them

yura parenyuk 2022-05-20T19:41:30.180829Z

@lilactown, please check it out this codebase

lilactown 2022-05-20T20:03:43.850289Z

idk - try playing with how you :require the components

2022-05-20T21:25:51.649599Z

You are passing cell-spacing to DashboardLayoutComponent it looks like a cljs vector. The library expects a js array right ? Maybe missing a #js if SeriesDirective is a js component {:dataLabel {:visible false}} would be #js {:dataLabel #js {:visible false}}

🙌 1
yura parenyuk 2022-05-21T00:30:58.905499Z

Thanks for your insights, let me look into it

yura parenyuk 2022-05-25T17:11:20.758869Z

Thanks!

yura parenyuk 2022-05-21T20:19:08.678859Z

I have tried it and many other methods as well. Now there's box empty box showing.

2022-05-21T20:41:37.638149Z

@yuraparenyuk957 have you turned the data1, data2, data3 points to cljs ? You could use clj->js on these structures. As far as I remember the style property of a component just is transformed in js if the ^:native is true I prefer not to use it and do like you are doing camelizing the names of the attributes like the target library demands, but If I remember correctly you have to put #js on style property too. In fact when I have literal nested data structures that need to turn into js I use https://github.com/applied-science/js-interop they have a function called (j/lit that and you dont pay the price of the transformation because it happens at compile time (because its a macro), clj->js does the job if you dont want another dependency, but it will run at runtime.

🙌 1