Converted the main layout to react jsx.