Skip to content

Need help on how to load Calendar widget from MaterialUI #1109

Answered by rmorshea
techwithhuz asked this question in Question
Discussion options

You must be logged in to vote

Unfortunately I don't think ReactPy is able to support DatePicker via module_from_template - there are two reasons for this:

  1. You need to wrap the date picker in a LocalizationProvider and ReactPy has limited support for nesting JS components
  2. the LocalizationProvider requires a JS dateAdapter and all props to JS component must be JSON serializable. So even if we could allow the JS components to be nested this would be a blocker.

These are some of the reasons why we want to deprecate module_from_template - its uses are pretty limited.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@techwithhuz
Comment options

@rmorshea
Comment options

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
2 participants