Dos and don'ts
Document Creation: 7 May, 2024. Last Edited: 10 July, 2024. Authors: Leesa Ward.
Summary of things to do
Fork the existing repositories for the project(s) you need to work on to your own GitHub account, and do your work in that codebase.
Create a branch in your fork for each piece of work.
Use React for your front-end work, with the supporting tools and libraries described in this documentation such as TypeScript, Styled Components and React Router.
Use the provided generator script to create new components.
Use TypeScript with a type (or interface) in place of PropTypes.
Use React function components in the first instance, or migrate if you have already developed a class component.
Raise small pull requests, often.
Keep pull requests limited to a single feature, change, or bugfix each.
Common mistakes and how to avoid them
Where to do your work
Mistake | |
---|---|
Why it's a mistake | |
What to do instead |
Mistake | |
---|---|
Why it's a mistake | |
What to do instead |
Mistake | |
---|---|
Why it's a mistake | |
What to do instead |
Tech Stack
Mistake | |
---|---|
Why it's a mistake | |
What to do instead |
Mistake | |
---|---|
Why it's a mistake | |
What to do instead |
Mistake | |
---|---|
Why it's a mistake |
If you are doing this because you don't know React, that's understandable and a valid choice so long as you understand that you will also need to make it work in React. Please also be aware that leaders and mentors may not have capacity to provide detailed feedback on code that is not PR-ready. |
What to do instead |
|
How to submit your work
Mistake | |
---|---|
Why it's a mistake |
Many team members submitting large PRs late in the trimester exacerbates this due to the increased workload on leaders and mentors. |
What to do instead |
Mistake | |
---|---|
Why it's a mistake | |
What to do instead |
Mistake | |
---|---|
Why it's a mistake | |
What to do instead |