npm.io
1.3.1 • Published 4 years ago

use-services

Licence
MIT
Version
1.3.1
Deps
2
Size
8 kB
Vulns
0
Weekly
0

use-services

Use services gracefully

Get Started

import useServices from "use-services";
import * as Echo from "@use-services/echo";

const options = {
  settings: {
    init: Echo.init,
    args: {},
  } as Echo.Option<typeof settings>,
};

const { srvs, init } = useServices("app", options);
export { srvs, init };