Use functional components where possible
@Brymon is already working on this.
Since Oct 19, 2018.
Assessment
This issue has not been assessed yet.
Description
If you have React components that only call render you can express this more succinctly (and React runs them faster) as a functional component:
const BackButton = ({ link }) => (
<Link to={link}>
...
</Link>
);
Destructing the props argument is a super-common React pattern that can clean up your code quite a lot.
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fac-14/OSCEBossKey
-
Use destructuringMay be free again @Brymon claimed this 2928 days ago, and no pull request is open. Openquick-fix refactoring
fac-14/OSCEBossKey#158 · 1 assignee ·
-
ResultsContainerMay be free again @Brymon claimed this 2928 days ago, and no pull request is open. Openrefactoring
fac-14/OSCEBossKey#157 · 1 assignee ·
-
Folder structureOpen
Difficulty 4/5 3-5 days Newbie friendliness 35/100
fac-14/OSCEBossKey#156 ·
-
Double queryOpen
Difficulty 4/5 3-5 days Newbie friendliness 20/100
fac-14/OSCEBossKey#152 · 2 comments ·
-
RESTful endpoint namingMay be free again @sima-qian claimed this 2928 days ago, and no pull request is open. Openserver
fac-14/OSCEBossKey#151 · 1 assignee ·
All issues in fac-14/OSCEBossKey
Similar issues
-
area: apple-music area: build-release bug effort: small priority: high
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ChristianTabor/Argon#32 ·
Maintainers usually reply within 1 day
-
0️⃣ phase/new
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Link Checker ReportOpenautomated issue report
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
good first issue tests
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day