noflo / noflo-react

Facebook React components for NoFlo
MIT License
20 stars 4 forks source link

Splitting "Mount" into "ConfigureComponent" and "Mount". #3

Closed JohnRandom closed 6 years ago

JohnRandom commented 10 years ago

In order to have more control over how React components are being instantiated, the Mount component was split into two components:

  1. ConfigureComponent now passes a set of properties to a React component during instantiation and then passes the configured React class to the out port.
  2. Mount now receives a pre-configured React class on the in port and mounts it to the container specified on the "container" port.

The Render subgraph was modified to work as before, by passing an empty object into ConfigureComponent.

bergie commented 6 years ago

This approach will sadly not work with newer React, so have to close this one.