Comments (3)
This is how React works. You need to use class
instead of className
for custom elements.
https://reactjs.org/docs/web-components.html#using-web-components-in-react:~:text=One%20common%20confusion%20is%20that%20Web%20Components%20use%20%E2%80%9Cclass%E2%80%9D%20instead%20of%20%E2%80%9CclassName%E2%80%9D.
from vite-plugin-react.
Hello Sapphi, thank you for the answer! I still wonder, how I can get rid of that "Did you mean className" warning in DEV tools? Because getting it for all custom HTML tags is gonna be pain in the ass. Not acceptable.
from vite-plugin-react.
I don't know. I assume that warning is coming from React and not from Vite or plugin-react. (I haven't checked as there wasn't a reproduction on this issue though.)
I think you could ask that question on the react related forums.
from vite-plugin-react.
Related Issues (20)
- Errors in react App.tsx file HOT 2
- Having "react" in optimizeDeps.include creates problems when "react" is externalized HOT 3
- Fast refresh without babel HOT 3
- Getting syntax error on react-redux-snackbar HOT 1
- Remove usage of Vite dedupe option
- Vite on M1 pro - This localhost page can’t be found HOT 2
- [plugin:vite:esbuild] This service is no longer running HOT 3
- HMR improvements for .ts files that include jsx
- Default ESLint setup ignores JSX files if you run `npx eslint .` HOT 3
- Injecting Preamble not possible when using `renderToPipeableStream`. HOT 2
- inject css in shadowDom HOT 1
- Does the React plugin not support React 16? I couldn't find related documentation. HOT 1
- react-beautiful-dnd拖拽插件在vite+react上面不能使用,react的脚手架就没有问题
- react-beautiful-dnd在vite脚手架下面不能拖拽
- **Update** It worked when I allocated a whopping 16GB of RAM for Vite's initialization cycle.
- Conflict with plugin-vue-jsx HOT 2
- Can not support hmr x include files inside node_modules
- vercel build, Writable' is not exported by __vite-browser-external HOT 1
- gettting jsxDev is not defined error while using LexicalRichTextPlugin in react HOT 1
- Could not resolve !!raw-loader!prismjs HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vite-plugin-react.