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
- Host: GitHub
- URL: https://github.com/wox-team/wox-inject
- Owner: wox-team
- License: mit
- Created: 2023-07-17T20:39:45.000Z (about 2 years ago)
- Default Branch: canary
- Last Pushed: 2024-11-06T21:39:04.000Z (11 months ago)
- Last Synced: 2025-08-18T17:54:15.954Z (about 2 months ago)
- Topics: dependency-injection, dependency-injection-container, dependency-inversion, di, react, react-dependency-injection
- Language: TypeScript
- Homepage: https://wox.so
- Size: 7.89 MB
- Stars: 11
- Watchers: 0
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
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.