-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add strange-forms examples and GitHub pages #10
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delayed review (and for submitting this right after you merge it in...)! I started this earlier in the week, and then it got lost in my sea of tabs. I just made a few suggestions on the install instructions for the examples. Thanks for the great examples, it was nice to checkout some strangeluv code again.
Click the green "Use this template" button above or install manually using git: | ||
|
||
```bash | ||
$ git clone --depth=1 --origin=strangeluv --branch=strangeluv git@github.com:bigroomstudios/strangeluv.git my-project |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ git clone --depth=1 --origin=strangeluv --branch=strangeluv git@github.com:bigroomstudios/strangeluv.git my-project | |
$ git clone git@github.com:BigRoomStudios/strange-forms.git |
|
||
```bash | ||
$ git clone --depth=1 --origin=strangeluv --branch=strangeluv git@github.com:bigroomstudios/strangeluv.git my-project | ||
$ cd my-project |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ cd my-project | |
$ cd strange-forms/examples |
```bash | ||
$ git clone --depth=1 --origin=strangeluv --branch=strangeluv git@github.com:bigroomstudios/strangeluv.git my-project | ||
$ cd my-project | ||
$ git checkout --orphan master # New branch without history |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ git checkout --orphan master # New branch without history |
The intention of this work is to document clearly how strange-forms works and how one might use it in various situations, through example. The provided examples are:
These are deployed to GitHub pages here: https://bigroomstudios.github.io/strange-forms. Each page also contains a short explainer, mentioning general pitfalls that may arise when implementing this example.
In order to illustrate the inner-workings of strange-forms, there is also a concise reference implementation using hooks, which is used to re-implement versions of the Controlled and Uncontrolled examples.