8000 Pass properties of custom element as Props in React component · Issue #106 · reactive-elements/reactive-elements · GitHub
[go: up one dir, main page]

Skip to content

Pass properties of custom element as Props in React component #106

@imolorhe

Description

@imolorhe

Hey I recently started experimenting with ReactiveElements and passing object properties as Props to the React component. I could only get the props in the React component by defining a props property on the custom element. I would rather want to have the props for the React component passed in by setting the properties in the custom element const el = new XYElement(); el.propX = {};. This should then be available to the React component as this.props.propX.

From the README file, it looks like it should work that way but didn't work for me.

Can this be done already and I am missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0