4 lines
189 B
TypeScript
4 lines
189 B
TypeScript
![]() |
// The useState composable creates a reactive and SSR-friendly shared state.
|
||
|
// Create a reactive state and set default value
|
||
|
const myValue = useState("myValue", () => 'this is my vlaue');
|