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

Cleaner props definition for app router > styling > css module example #65216

Closed
wants to merge 1 commit into from

Conversation

zowebs
Copy link

@zowebs zowebs commented Apr 30, 2024

What?
Updated the the code example in App router > styling > CSS modules docs

Why?
Improved readability using predefined React interface for props including only children key. Previous implementation with in-line type definition stretched over 3 lines was reducting the purity of the example

How?
I rewrote the props definition to one line using predefined Reacts interface for props with children

@zowebs zowebs requested review from a team as code owners April 30, 2024 19:06
@zowebs zowebs requested review from molebox and StephDietz and removed request for a team April 30, 2024 19:06
@ijjk ijjk added the Documentation Related to Next.js' official documentation. label Apr 30, 2024
@ijjk
Copy link
Member

ijjk commented Apr 30, 2024

Allow CI Workflow Run

  • approve CI run for commit: 5b1598e

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@zowebs zowebs changed the title Cleaner way of defining Props with children Cleaner props definition for app router > styling > css module example Apr 30, 2024
@zowebs zowebs closed this by deleting the head repository May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Related to Next.js' official documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants