Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Frontend
/
CSS-in-JS
A drag handle receives a new x coordinate on every pointer event. Which styling shape bes…
from CSS-in-JS
React 19
intermediate
1 min
A drag handle receives a new x coordinate on every pointer event. Which styling shape best avoids generating a class for every coordinate?
Keep one class with transform: translateX(var(--x)), then set a validated --x value per element.
Create a new styled component inside the pointer handler.
Append !important to every generated coordinate rule.
Hash the raw pointer event object into the class name.
Check
Ask AI about this kata
Report an error
next kata
What does this finite-variant selector print?
Predict the output
A new version is available
Reload