Skip to content

POC: <board /> component #10

Description

@iamdustan

Or really support for any component that has an async mounting period before it can render it’s children. I have no idea how this will impact the codebase, but I imagine it will be slightly invasive.

React’s future incremental reconciler could be really interesting for this.

Strawman API that would be supported by this:

const App = (
  <container>
    <board port="/dev/cu.usbmodem1451" pinMapping={arduinoUnoPinMapping}>
      <Led pin={2} value={this.state.value}
    </board>
    <board port="/dev/cu.usbmodem1455" pinMapping={raspberryPiPinMapping}>{...}</board>
    <board port="/dev/rfcomm0">{someComponentsOnABluetoothConnectedDevice}</board>
  </container>
);

Use case is that full board configurations now become composable without needing an outside state management system other than setState.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions