Skip to content
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

Draft: Create reusable error and loading components #5

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

cesarnml
Copy link

@cesarnml cesarnml commented Dec 31, 2021

This PR should be considered after PR #3 since it builds off changes found in that PR.

Totally being nit-picky here, but this avoids the nested ternary expression. 😀

Plus I feel that passing the error and loading status as a prop to a reusable component is a bit more readable and slightly more inline wrt to React component patterns.

@cesarnml cesarnml changed the title Create reusable error and loading components Draft: Create reusable error and loading components Dec 31, 2021
@cesarnml cesarnml marked this pull request as draft December 31, 2021 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant