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: 9 months 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 (almost 3 years ago)
- Default Branch: canary
- Last Pushed: 2024-11-06T21:39:04.000Z (over 1 year ago)
- Last Synced: 2025-08-18T17:54:15.954Z (10 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.