Allow JavaScript components inside of props dict

Offen
#1,319 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
javascript, python, react
Bereich
frontend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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".

Vorherrschende Sprache
Python
Sterne
8.1k
Forks
332
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus reactive-python/reactpy

Alle Issues in reactive-python/reactpy

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.