About Us
menu option. Depending on your network speed you may notice a slight delay and the content area of our page remains empty.<Loading>
component.components
directory and call it loading.js
. Add the following code:styled
we also import keyframes
from frontity
. This function works in a similar way to styled
and takes a tagged template literal as it's argument. See our docs for more info.spin
which we then go on to use in the animation
property of our <Spinner>
component.<Loading>
component doesn't need to access the state so we don't need to pass it to the connect
higher order component when we export it.<Switch>
component that's within our <Root>
component. Remember that we also need to import the component.