- Notifications
You must be signed in to change notification settings - Fork444
fetch effects, context providers, named export react fc#173
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
| "export { ${1/(.*)/${1:/capitalize}/}Provider, use${1/(.*)/${1:/capitalize}/} }" | ||
| ], | ||
| "description":"Create React Context Provider with custom useContext Hook" | ||
| }, |
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.
Inspired by KentCDodds:https://kentcdodds.com/blog/how-to-use-react-context-effectively
| "" | ||
| ], | ||
| "description":"Creates a React Arrow Function Component with ES7 module system with named export" | ||
| }, |
BryceHamiltonMar 27, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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.
The codebase at my work uses named exports for components exclusively, it makes tracking them a lot easier. :)
| <br> | ||
| After`count` is typedfor`$1`, once`tab` is typed,`setCount` is capitalized. | ||
BryceHamiltonMar 27, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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.
I was shy to use react-snippets before I understood thetab skipping and that some snippets would camelCase capitalize automatically. Thought this might be useful for others 😁
Uh oh!
There was an error while loading.Please reload this page.
ice-chillios commentedMar 30, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@BryceHamilton Thank you for your contribution!. I will need a day or two to find time to look through all changes :) |
BryceHamilton commentedMar 30, 2021
Hey my pleasure, thanks for taking the time to consider 😊 |
ice-chillios commentedSep 16, 2021
@BryceHamilton I will close this PR but will introduce those changes as I'm making a little refactoring of the whole extension and it will bring a lot of conflicts inside |
Uh oh!
There was an error while loading.Please reload this page.
Hey, I thought it might be nice to have some snippets for data fetching in React Components.
Hopefully, these don't seem too complex, I find them to be very common when making many small projects.
Great extension. Cheers :)