compile html to react syntax