Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Does IDOM support all React components? #358

Answered by rmorshea
Archmonger asked this question in Question
Discussion options

The docs mention react components can be used. Are there limitations?

You must be logged in to vote

With respect to components installed with $ idom install or idom.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.

Replies: 1 comment

Comment options

With respect to components installed with $ idom install or idom.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.

You must be logged in to vote
0 replies
Answer selected by Archmonger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /