@linkcs/props-injecter

Check if a room number is valid

Usage no npm install needed!

<script type="module">
  import linkcsPropsInjecter from 'https://cdn.skypack.dev/@linkcs/props-injecter';
</script>

README

Props-Injecter

React component that injects props to its children.

How to Use

The two following codes are equivalent:

import React from "react";
import PropsInjecter from "@linkcs/props-injecter";

const App = () => (
  <React.Fragment>
    <Foo loading counter={5} />
    <Bar loading counter={5}>
      <Foobar loading counter={5} />
    </Bar>
  </React.Fragment>
);
import React from "react";
import PropsInjecter from "@linkcs/props-injecter";

const App = () => (
  <PropsInjecter loading counter={5}>
    <Foo />
    <Bar>
      <Foobar />
    </Bar>
  </PropsInjecter>
);