Skip to content

convert html attributes to jsx (e.g. class to className etc.)

Notifications You must be signed in to change notification settings

ChristianHohlfeld/htmlconverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

htmlconverter

Convert any html file to a jsx file. The tool converts all attributes to jsx syntax. No sanity checks (e.g. dangerouslySetInnerHTML).

motivation

I used https://mertjf.github.io/tailblocks/ to create landing pages which spits out html only so I created a simple cli tool to convert any html attributes to jsx syntax using htmltojsx package provided by facebook.

usage (shell/bash)

Following command will convert a html file "tail.html" to a file named "converted.jsx"

node index.js tail.html

About

convert html attributes to jsx (e.g. class to className etc.)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published