September 2018
Intermediate to advanced
302 pages
7h 17m
English
Let's suppose we have to create a welcome screen for our application. It should be divided into three sections—header, main content, and footer. We would like to have consistent margins and styling for both logged and anonymous users. However, the header and footer content will differ. Our next task is to create a component that supports these requirements.
Let's create a welcome screen that will use a generic component for encapsulating an app layout.
Follow this step-by-step guide to do so:
const AppLayout = ({Header, MainContent, Footer}) => ( // These three props can be any component ...Read now
Unlock full access