Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 1f71359

Browse files
committed
added example docs and fixed broken links
1 parent ccb614f commit 1f71359

File tree

5 files changed

+9
-19
lines changed

5 files changed

+9
-19
lines changed

docs/examples/Indroduction.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ sidebar_label: Introduction
55
slug: /examples
66
---
77

8-
:::warning
8+
Most of the time you can learn something better by seeing it in action.
9+
That's why we've put together a few examples for you.
10+
If that's not enough for you, we have more examples in the [AgileTs repository](https://github.com/agile-ts/agile/tree/master/examples).
911

10-
WIP Docs!
11-
12-
:::
12+
## 🚀 Quick Links
13+
- [React](./react/All.mdx)
14+
- [React-Native](./react-native/All.mdx)

docs/examples/react-native/All.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ sidebar_label: All
55
slug: /examples/react-native
66
---
77

8-
:::warning
9-
10-
WIP Docs!
11-
12-
:::
13-
148
export const ExpoSandbox = ({ uri, height }) => {
159
// https://github.com/expo/snack/blob/main/docs/embedding-snacks.md
1610
// Script is set in docusaurus.config.js

docs/examples/react/All.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ sidebar_label: All
55
slug: /examples/react
66
---
77

8-
:::warning
9-
10-
WIP Docs!
11-
12-
:::
13-
148
export const CodeSandBoxEmbed = ({ uri, height }) => (
159
<iframe
1610
src={`https://codesandbox.io/embed/${uri}?fontsize=14&hidenavigation=0&theme=dark&view=preview`}

docs/packages/react/Introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ It takes care of binding [Agile Sub Instances](../../main/Introduction.md#agile-
5656
export default AgileHOC(myComponent, [MY_FIRST_STATE]);
5757
```
5858
To find out more about the `AgileHOC` and AgileTs in Class Components,
59-
checkout the [AgileHOC documentation](./features/AgileHOC.md).
59+
checkout the [AgileHOC documentation](./features/AgileHoc.md).
6060

6161
## 🚀 Quick Links
6262
- [Installation](./Installation.md)
6363
- [React Hook](./features/Hooks.md)
6464
- [useAgile](./features/Hooks.md#useagile)
6565
- [useWatcher](./features/Hooks.md#usewatcher)
66-
- [AgileHOC](./features/AgileHOC.md)
66+
- [AgileHOC](./features/AgileHoc.md)

docs/quick_start/React.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ we need to bind the State to our React Component using the [`useAgile()`](../pac
160160
This ensures that the Component rerenders whenever the State mutates, so when its value changes.
161161
The `useAgile()` Hook returns the current `value` of the State, in our case 'Hello World'.
162162
Be aware that React Hooks can only be used in Function Components!
163-
For Class Components we have provided a Higher Order Component called [AgileHOC](../packages/react/features/AgileHOC.md).
163+
For Class Components we have provided a Higher Order Component called [AgileHOC](../packages/react/features/AgileHoc.md).
164164

165165
```ts
166166
MY_FIRST_STATE.set(`Hello World ${++helloWorldCount}`);

0 commit comments

Comments
 (0)