@linkcs/props-injecter
v0.1.1
Published
Check if a room number is valid
Downloads
2
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>
);