@rainway/react
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

@rainway/react

React components for the Rainway SDK Web Runtime.

Usage

Pass a RainwayStream as a prop to this Rainway component to render it!

return (
  <Rainway
    stream={currentStream} // Pass in a RainwayStream object...
    style={{ filter: "grayscale(1)" }} // ... and styles for the wrapper div
  >
    <p>Children are displayed as fallback when `stream` is undefined.</p>
  </Rainway>
);

For more information, see the Rainway tutorial.

Dependencies (0)

    Dev Dependencies (14)

    Package Sidebar

    Install

    npm i @rainway/react

    Homepage

    rainway.com

    Weekly Downloads

    0

    Version

    0.5.0

    License

    SEE LICENSE IN LICENSE

    Unpacked Size

    104 kB

    Total Files

    10

    Last publish

    Collaborators

    • bengreenier
    • andrewmd5
    • lynnrainway