@youmiya/react
v0.1.2
Published
React binding for youmiya.
Downloads
10
Readme
@youmiya/react
React binding for youmiya.
Hooks
useContainer
import { useContainer, ContainerProvider } from '@youmiya/react';
function App() {
const container = useContainer('AppContainer');
// Now you have a brand new container...
return (
<ContainerProvider container={container}>
// ...
</ContainerProvider>
);
}
useResolution
import { useResolution } from '@youmiya/react';
function App() {
const instanceOfFoo = useResolution(Foo);
const instanceOfBar = useResolution(Bar);
// ...
}