alepha@docs:~/docs/reference/react-hooks$
cat useAlepha.md1 min read
Last commit:
#useAlepha
#Import
typescript
1import { useAlepha } from "alepha/react";
#Overview
Main Alepha hook.
It provides access to the Alepha instance within a React component.
With Alepha, you can access the core functionalities of the framework:
- alepha.state() for state management
- alepha.inject() for dependency injection
- alepha.events.emit() for event handling etc...