Enhanced Examples
- Dominant language
- TypeScript
- Stars
- 777
- Forks
- 1.4k
- Avg merge
- 16h 45m
- Merged PRs (30d)
- 3
Description
Ref https://github.com/babel/babel.github.io/issues/59
Maybe this is just weird, but it would be pretty cool to see real world examples of specific syntax out out on github. So if you are learning about arrow functions we can provide some basic examples but maybe you'd like to see how it's used in an actual codebase?
- [x] examples we can come up with (simple, easy to learn) #59
- [ ] examples from our unit tests (basically "syntax" coverage, but not as helpful to developers to learn from)
- [ ] examples from babel/github itself (no context but more real world usage)
- [ ] hardcode a script to find kinds of syntax, or create an AST/Babel grep kind of tool that prints a codeframe of the relevant syntax
- [ ] Use GitHub Archive/Google BigQuery's database to search github for uses of a certain syntax/pattern (filter JS repositories, filter by stars, date)? (may need to pin the commit/file)
- [ ] populate examples?
For example: Searching on github for JS repositories with a > 1000 stars, https://github.com/reactjs/react-redux/blob/7337f1a5de42c76b69e56f713ac933aedcb12867/src/connect/connect.js#L31 has an example of an arrow function
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.