Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Imported JSX component NewsСardMedium must be in PascalCase – isn't it? [closed]

I'm tired of endless warnings about PascalCase and unfortunately I found nothing in search, so decided to ask here - whats wrong with these components naming, aren't they already in PascalCase?

Imported JSX component NewsСardLarge must be in PascalCase
Imported JSX component NewsСardMedium must be in PascalCase  
Imported JSX component NewsСardSmall must be in PascalCase

the same goes for GridViewDesktop, GridViewTablet, etc..

like image 244
Vladislav Sorokin Avatar asked Jan 28 '23 08:01

Vladislav Sorokin


1 Answers

The error is because you're using Cyrillic С (\u0421) instead of Latin C (\u0043) in your code.

  • NewsСardLarge should be instead NewsCardLarge
  • NewsСardMedium should be instead NewsCardMedium
  • NewsСardSmall should be instead NewsCardSmall
like image 122
Cœur Avatar answered May 16 '23 09:05

Cœur