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

Convert basic-css example to TypeScript #38091

Merged

Conversation

maxproske
Copy link
Contributor

@maxproske maxproske commented Jun 28, 2022

Converted basic CSS example over to TypeScript to match the Contribution guidelines.

Documentation / Examples

  • Make sure the linting passes by running pnpm lint
  • The examples guidelines are followed from our contributing doc

@ijjk ijjk added the examples Issue/PR related to examples label Jun 28, 2022
@kodiakhq kodiakhq bot merged commit 3d482cf into vercel:canary Jun 29, 2022
@@ -1,9 +1,11 @@
import styles from '../styles.module.css'

export default function Home() {
const Home = () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to keep here as before with the function name, that's also helpful for react devtools and align with react docs

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. I considered this my stylistic preference, but if this is what the React docs do as well, I think I would prefer function over const as well, so the declaration and export aren't split

@tonyspiro tonyspiro mentioned this pull request Jul 23, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue/PR related to examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants