Skip to content

Commit

Permalink
docs(react): update readme
Browse files Browse the repository at this point in the history
to avoid markdown all in one issue:
yzhang-gh/vscode-markdown#1112
  • Loading branch information
unional committed Apr 18, 2022
1 parent a74c678 commit 11fd19e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions libraries/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ rush add -p @just-web/react

## Features <!-- omit in toc -->

- [`lazyImport`](#lazyimport)
- [`useStore`](#usestore)
- [lazyImport](#lazyimport)
- [useStore](#usestore)

## [`lazyImport`]
## lazyImport

Imports a component module and get lazy load the component within.
[`lazyImport`] imports a component module and get lazy load the component within.

```tsx
const app = createTestApp()
Expand All @@ -42,7 +42,9 @@ const MyComp = () => {
}
```

## [`useStore`]
## useStore

[`useStore`] pick out a value in the `store` for `useState()`.

```tsx
import { createStore } from '@just-web/app'
Expand Down

0 comments on commit 11fd19e

Please sign in to comment.