Skip to content

Commit

Permalink
Fix prettier jsx live bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Prokop committed Jan 17, 2023
1 parent 94b46f5 commit 00ab39c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/docs/docs/components/Graphics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ https://pixijs.download/dev/docs/PIXI.Graphics.html
## Usage

```jsx live
function GraphicsUsage() {
function GraphicsExample() {
const draw = useCallback((g) => {
g.clear();
g.beginFill(0xff3300);
Expand Down
8 changes: 4 additions & 4 deletions packages/docs/docs/stage/Stage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ If you want to know when components have changed, you can listen to the `__REACT
> Disable `raf` and enable `renderOnComponentChange`:
```jsx live
() => {
function DisableRAFExample() {
// a simple incremental hook
// https://gist.github.com/inlet/3e80965127d16c056da247f66839f51d
const i = useIteration(0.1);
Expand All @@ -96,15 +96,15 @@ If you want to know when components have changed, you can listen to the `__REACT
/>
</Stage>
);
};
}
```
### Update stage manually
> Disable `raf` and `renderOnComponentChange`:
```jsx live
() => {
function DisableRAFWithManualRenderExample() {
const [app, setApp] = useState();
const i = useIteration(0.1);

Expand Down Expand Up @@ -133,7 +133,7 @@ If you want to know when components have changed, you can listen to the `__REACT
</button>
</div>
);
};
}
```
## Accessing PIXI.Application
Expand Down

0 comments on commit 00ab39c

Please sign in to comment.