render the main layout with React