Skip to content

Commit 7d1c2fb

Browse files
committed
docs(readme): add examples
1 parent c271da6 commit 7d1c2fb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ const query = gql`
4747
`
4848
```
4949

50+
**[⚡️ See live example on CodeSandbox](https://codesandbox.io/s/l42jqm319l)**
51+
5052
## Motivation
5153

5254
Putting data next to your component is a good practice. It is built-in [Relay](https://facebook.github.io/relay/) and Lee Byron explains the advantages into [his talk about the IDEA architecture](https://www.youtube.com/watch?v=oTcDmnAXZ4E).
@@ -127,7 +129,9 @@ const ArticleList = ({ articles }) => (
127129
export default ArticleList
128130
```
129131

130-
**[See an example of FraQL + React & Apollo](https://github.com/smooth-code/fraql/tree/master/examples/react)**
132+
**[⚡️ See live example on CodeSandbox](https://codesandbox.io/s/l42jqm319l)**
133+
134+
**[⚡️ See React example in this repository](https://github.com/smooth-code/fraql/tree/master/examples/react)**
131135

132136
## Mocking
133137

@@ -210,7 +214,7 @@ const props = mocker.mockFragments(ArticleCard.fragments)
210214
const articleCard = <ArticleCard {...props} />
211215
```
212216

213-
**[See an example of mock usage into StoryBook](https://github.com/smooth-code/fraql/tree/master/examples/react)**
217+
**[⚡️ See StoryBook example in this repository](https://github.com/smooth-code/fraql/tree/master/examples/react)**
214218

215219
## Recipes
216220

0 commit comments

Comments
 (0)