An open API service indexing awesome lists of open source software.

https://github.com/wox-team/wox-inject

React Dependency Injection library
https://github.com/wox-team/wox-inject

dependency-injection dependency-injection-container dependency-inversion di react react-dependency-injection

Last synced: 25 days ago
JSON representation

React Dependency Injection library

Awesome Lists containing this project

README

          




An open source Dependency Injection library.














Wox Inject empowers React apps with a versatile dependency injection library, promoting an alternative paradigm to handle complexity.

```tsx
import { Injectable } from '@wox-team/wox-inject';

@Injectable()
class GreeterService {
greet(val: string) {
console.log(val);
}
}

function App() {
const greeterService = useResolve(GreeterService);

return (
greeterService.greet('hello!')}>click me
);
}
```

## Getting Started

Visit [wox.so](https://wox.so) to get started with Wox Inject.


## What about SSR?

Right now the focus is to provide stability for SPA usage. SSR will be on the roadmap.


## Contributing

Want to contribute to wox inject? Our [contributing guide](https://github.com/wox-team/wox-inject/blob/canary/.github/CONTRIBUTING.md) has you covered.