scup/atellier

Feature: add optional `componentProps` to the component descriptor to pass initial props values from the outside.

sompylasar opened this issue · 2 comments

Like this:

const components = [
  {
    component: SomeComponent,
    componentName: "SomeComponent",
    componentProps:  {
      foo: "bar",
    },
  }
];
mpim commented

My team has a need for this feature also - we have samples with fake data and relying defaultProps is risky because that shouldn't get rendered in the actual live site.

It's a good idea