Movatterモバイル変換


[0]ホーム

URL:


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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
BryceHamilton wants to merge4 commits intor5n-labs:masterfromBryceHamilton:master

Conversation

@BryceHamilton
Copy link

@BryceHamiltonBryceHamilton commentedMar 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"
},

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

@BryceHamiltonBryceHamiltonMar 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 typedfor`$1`, once`tab` is typed,`setCount` is capitalized.
Copy link
Author

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

@ice-chillios
Copy link
Member

ice-chillios commentedMar 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 :)

@BryceHamilton
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 😊

@ice-chillios
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 freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ice-chilliosice-chilliosice-chillios left review comments

Assignees

No one assigned

Labels

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@BryceHamilton@ice-chillios

[8]ページ先頭

©2009-2025 Movatter.jp