Allow JavaScript components inside of props dict
Author: ArchmongerCreated Dec 15, 2025Updated Jun 28, 2026
Labelspriority-2-moderatetype-revision
Current Situation
Libraries like MaterialUI use components within the props dictionary, and this currently isn't supported by ReactPy.
Ref: https://github.com/reactive-python/reactpy/discussions/989#discussioncomment-5992719
Proposed Actions
We need to spend some additional thought on how to allow JavaScript components to be added as a prop value. This may result in adding some kind of internal flag that signifies "this prop value contains a component".
Source: reactive-python/reactpy