rename root as react component
convert root to jsx
modify formatting