Fork me on GitHub
#helix
<
2022-05-20
>
geraldodev09:05:06

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 parenyuk16:05:15

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.

lilactown16:05:34

looks like a code error

yura parenyuk16:05:04

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

lilactown16:05:17

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

yura parenyuk16:05:56

Yes, syncfusion ones.

lilactown16:05:52

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

lilactown16:05:38

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

yura parenyuk19:05:30

@U4YGF4NGM, please check it out this codebase

lilactown20:05:43

idk - try playing with how you :require the components

geraldodev21:05:51

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 parenyuk00:05:58

Thanks for your insights, let me look into it

yura parenyuk20:05:08

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

geraldodev20:05:37

@U03FS95UAMT 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