Skip to content

Instantly share code, notes, and snippets.

@asm-jaime
Last active September 12, 2016 20:19
Show Gist options
  • Save asm-jaime/37fdc7b26b811f9d8aa157c87035fdea to your computer and use it in GitHub Desktop.
Save asm-jaime/37fdc7b26b811f9d8aa157c87035fdea to your computer and use it in GitHub Desktop.
regular expression (regExp, vim), convert easy css to react inline-css
  1. %s/\(-\)\(\w\)/\U\2/g - replace something like font-size to fontSize
  2. %s/\(: \)\(.\+\);/\1"\2",/g - replace something like 25px; to "25px", fontSize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment