Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
BryceHamilton wants to merge 4 commits into r5n-labs:master from BryceHamilton:master

Conversation

Copy link

@BryceHamilton BryceHamilton commented Mar 27, 2021
edited
Loading

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 :)

ice-chillios reacted with heart emoji
"export { ${1/(.*)/${1:/capitalize}/}Provider, use${1/(.*)/${1:/capitalize}/} }"
],
"description": "Create React Context Provider with custom useContext Hook"
},
Copy link
Author

@BryceHamilton BryceHamilton Mar 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

""
],
"description": "Creates a React Arrow Function Component with ES7 module system with named export"
},
Copy link
Author

@BryceHamilton BryceHamilton Mar 27, 2021
edited
Loading

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 typed for `1ドル`, once `tab` is typed, `setCount` is capitalized.

Copy link
Author

@BryceHamilton BryceHamilton Mar 27, 2021
edited
Loading

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 the tab skipping and that some snippets would camelCase capitalize automatically. Thought this might be useful for others 😁

Copy link
Member

ice-chillios commented Mar 30, 2021
edited
Loading

@BryceHamilton Thank you for your contribution!. I will need a day or two to find time to look through all changes :)

Copy link
Author

@BryceHamilton Thank you for your contribution!. I will need a day or two to find time to look through all changes :)

Hey my pleasure, thanks for taking the time to consider 😊

Copy link
Member

@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 .json files.

BryceHamilton reacted with rocket emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@ice-chillios ice-chillios ice-chillios left review comments

Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /