1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Create a Data Directory in Gatsby using the onPreBootstrap lifecycle

    gatsbyGatsby
    >=2.13.1

    Learn how to architect the React components in your Gatsby theme to maximize reusability and extendability while minimizing maintenance and hassle.

    The first step is to make sure the data directory exists so because gatsby-source-filesystem will throw an error if it doesn't.

    This lesson will cover that step.

    For a written version of this course, check out the Gatsby docs.