Skip to content

Commit b5c0667

Browse files
fix up missing import and formatting
1 parent edee994 commit b5c0667

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/content/docs/workers/frameworks/framework-guides/react-router.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
Steps,
1212
Details,
1313
FileTree,
14+
WranglerConfig,
1415
} from "~/components";
1516

1617
**Start from CLI**: Scaffold a full-stack app with [React Router v7](https://reactrouter.com/) and the [Cloudflare Vite plugin](/workers/vite-plugin/) for lightning-fast development.
@@ -170,9 +171,9 @@ As you have direct access to your Worker entry file (`workers/app.ts`), you can
170171
```
171172

172173
Configure it in your Wrangler configuration file:
173-
174+
174175
<WranglerConfig>
175-
176+
176177
```toml
177178
[[workflows]]
178179
name = "my-workflow"
@@ -182,14 +183,15 @@ As you have direct access to your Worker entry file (`workers/app.ts`), you can
182183

183184
</WranglerConfig>
184185

185-
And then using it in your application:
186-
186+
And then use it in your application:
187+
187188
```ts title="app/routes/home.tsx"
188189
export function action({ context }: Route.LoaderArgs) {
189190
const instance = await env.MY_WORKFLOW.create({ params: { "hello": "world" })
190191
return { id: instance.id, details: instance.status() };
191192
}
192193
```
194+
193195
</Details>
194196
195197
<Render file="frameworks-bindings" />

0 commit comments

Comments
 (0)