Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenAlHamad authored Dec 30, 2024
1 parent ee1b975 commit 4267c88
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cms-live-preview/5.40.x/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@ Add component styles to the `website` app, in `apps/website/public/index.html`:

Add live preview route in `apps/website/src/App.tsx`:

```tsx
```diff tsx
import React from "react";
import { Website } from "@webiny/app-website";
import { createLivePreviewRoute } from "@demo/live-preview-website";
+ import { createLivePreviewRoute } from "@demo/website";
import "./App.scss";

export const App = () => {
return <Website routes={[createLivePreviewRoute()]} />;
- return <Website/>;
+ return <Website routes={[createLivePreviewRoute()]} />;
};
```

Expand Down

0 comments on commit 4267c88

Please sign in to comment.