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

assign variable before export default #7926

Merged
merged 1 commit into from
Jul 6, 2022
Merged

Conversation

sunil-sharma-999
Copy link
Contributor

fix eslint warnings

  • Assign object to a variable before exporting as module default
  • Assign arrow function to a variable before exporting as module default

fix eslint warnings
- Assign object to a variable before exporting as module default
- Assign arrow function to a variable before exporting as module default
@fzaninotto
Copy link
Member

We tend to use named exports rather than default exports in react-admin. I think the tutorial should be updated accordingly.

@sunil-sharma-999
Copy link
Contributor Author

@fzaninotto

same, was thinking of changing them into named exports but then i thought maybe other people like default exports. should i update it?

@fzaninotto
Copy link
Member

yes, please, but make sure that the other code snippets, where we import the components, are updated, too.

@sunil-sharma-999
Copy link
Contributor Author

@fzaninotto

Should i change the structure of files in tutorial or not?

@djhi djhi merged commit 86063ad into marmelab:master Jul 6, 2022
@djhi djhi added this to the 4.2.1 milestone Jul 6, 2022
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.

None yet

3 participants