You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for being interested in contributing a demo! Before you read more, have you read the [contribution guide](https://github.com/pmndrs/react-spring/blob/master/CONTRIBUTING.md) for the repo? If not, give it a look first!
6
+
7
+
## What is required
8
+
9
+
All our demos are based on codesandbox templates for react-typescript. If you're going to contribute a
10
+
demo, you can either copy an existing demo and tweak it or create a new one in codesandbox, export the
11
+
code and add it to the repo.
12
+
13
+
You should ensure your demo follows the same structure as the other ones:
14
+
15
+
```
16
+
- public
17
+
- src
18
+
- - App.tsx
19
+
- - index.tsx
20
+
- .pretterrc
21
+
- package.json
22
+
- tsconfig.json // I would copy this from an existing one
23
+
- thumbnail.png
24
+
```
25
+
26
+
This is the minimum we require as the `App.tsx` is used to integrate with our demo hub via vite in the repo.
27
+
28
+
A few other things to remember
29
+
30
+
### Thumbnail
31
+
32
+
This should be included to showcase your work best! Make sure it's a 16:9 ratio.
33
+
34
+
### Package.json
35
+
36
+
Ensure there's a clear name and description as these appear on the website. You should also use `tags` to highlight keywords
37
+
especially the `react-spring` hooks you've used.
38
+
39
+
## When you're ready
40
+
41
+
When you've finished adding your code, open a PR explaining the example, why you think it should be included
42
+
and most importantly, include a sandbox link so it can be looked at and admired!
0 commit comments