Allow JavaScript components inside of props dict

Open
#1,319 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, python, react
Domain
frontend

Research direction

Start with the linked ReactPy discussion and investigate how JavaScript components are currently represented in prop values. Define how component-containing props should be distinguished from ordinary values, then verify that libraries such as MaterialUI can pass JavaScript components through a props dictionary.

Written by the indexing model from the issue text.

Description

priority-2-moderate type-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".

Dominant language
Python
Stars
8.1k
Forks
332
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from reactive-python/reactpy

All issues in reactive-python/reactpy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.