Does IDOM support all React components? #358
Answered
by
rmorshea
Archmonger
asked this question in
Question
|
The docs mention react components can be used. Are there limitations? |
Answered by
rmorshea
Apr 29, 2021
Replies: 1 comment
|
With respect to components installed with That probably won't change though because there is an interface for integrating your own custom components in JS and distributing them as a Python package. However, I have plans to reconsider that soon so I've been hesitant to suggest people use it. |
0 replies
Answer selected by
Archmonger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With respect to components installed with
$ idom installoridom.install()there's definitely some limitations that, unfortunately, I haven't really had the time to document yet. In short, all component props have to be JSON serializable, so that's a problem if you need to assign a JS object to a prop. This is a common pattern in Material UI so it's come up a number of times in that context.That probably won't change though because there is an interface for integrating your own custom components in JS and distributing them as a Python package. However, I have plans to reconsider that soon so I've been hesitant to suggest people use it.