Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
react-router - Skill - OpenSmartRoute
Skillv1.0.0
react-router
The primary export in a routes file should specify loaderData like `export default function PageName({ loaderData }: Route.ComponentProps)` - When using an import from `~/configuration/client` (1) use
Instruction file imported from iloveitaly/todoist-to-markdown (.github/instructions/react-router.instructions.md). Copyright stays with the author.
The primary export in a routes file should specify loaderData like export default function PageName({ loaderData }: Route.ComponentProps)
When using an import from ~/configuration/client (1) use body: for request params and (2) always const { data, error } = await theCall()
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/iloveitaly-todoist-to-markdown-react-router-instructions/manifest # or paste the manifest below
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
{
"ocm": "1",
"id": "iloveitaly-todoist-to-markdown-react-router-instructions",
"kind": "skill",
"name": "react-router",
"description": "The primary export in a routes file should specify loaderData like `export default function PageName({ loaderData }: Route.ComponentProps)` - When using an import from `~/configuration/client` (1) use `body:` for request params and (2) always `const { data, error } = await theCall()`",
"publisher": "iloveitaly",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"The primary export in a routes file should specify loaderData like `export default function PageName({ loaderData }: Route.ComponentProps)` - When using an import from `~/configuration/client` (1) use `body:` for request params and (2) always `const { data, error } = await theCall()`"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/iloveitaly/todoist-to-markdown",
"path": ".github/instructions/react-router.instructions.md",
"ref": "12dbeea2f30552467025552b1aedaccc464fc2fc",
"url": "https://github.com/iloveitaly/todoist-to-markdown/blob/12dbeea2f30552467025552b1aedaccc464fc2fc/.github/instructions/react-router.instructions.md",
"key": "iloveitaly/todoist-to-markdown/.github/instructions/react-router.instructions.md"
},
"applies_to": "web/app/routes/**/*.tsx"
},
"instructions": "- The primary export in a routes file should specify loaderData like `export default function PageName({ loaderData }: Route.ComponentProps)`\n- When using an import from `~/configuration/client` (1) use `body:` for request params and (2) always `const { data, error } = await theCall()`",
"cost": {
"context_tokens": 71
}
}
Fetch it by URL: GET /api/v1/registry/iloveitaly-todoist-to-markdown-react-router-instructions/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.