Skip to content

Find and replace HTML attributes with React props

Posted on:May 7, 2023

Regex for finding and replacing all instances of HTML attributes with dashes to camelCase React props in VS Code.

-([a-z])(\w+)=
\U$1$2=