Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork254
feat: documentref for self-referencing#960
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
@czabaj is attempting to deploy a commit to theReScript Association Team onVercel. A member of the Team first needs toauthorize it. |
Sorry I missed this during my christmas break. The example seems pretty heavy and we usually try to avoid React-specific code in the main documentation. Can you come up with a simpler example that doesn't need React? |
Uh oh!
There was an error while loading.Please reload this page.
I encountered a problem with valid JS code that was hard to translate into rescript - the problem isdiscussed here in the forum - it turned out the
refcan help with self-referencing.I promised to add this trick to the documentation, so here it is. Feel free to criticize 😸
I currently added it just to the v11 docs, once this passes validation, I will copy that into other versions as well. I assume it is useful for all versions where mutable let assignment exists?
Here is how it renders