posit-dev / shiny-bindings

Monorepo containing Javascript packages that simplify the experience of writing custom bindings for Shiny apps
10 stars 3 forks source link

Support Passing Components as Children to `makeReactInput` #9

Open pstorozenko opened 5 months ago

pstorozenko commented 5 months ago

Description

At present, the makeReactInput does not support passing components as children from Python to React. This functionality is essential to create complex React component hierarchies within PyShiny applications.

Problem Example

component = react_component(child_component1, child_component2, prop1=value1, prop2=value2)

Proposed Solution

I don't have any proposed solution, but it should probably work as *args from the pythons perspective.

What do you think?