Skip to content
card background pattern
Level 2

Custom React Hooks

Unlock Full Course

$49.99 $24.99

Or

$24.99/Month

Babel Module Resolver

Here we will eject from Create React App and start using babel so that we can use module resolvers to clean up our import statements.

Note: This is an optional step and once you have ejected from CRA you cannot go back.
npm run eject npm install —save-dev babel-plugin-module-resolver

Downloads

Comments

Jared Brown
6 months ago

For Gatsby users ... Just found this gem for accomplishing the same effect for your local hooks library in a Gatsby project—works super well!

https://www.gatsbyjs.org/packages/gatsby-plugin-module-resolver/

Something to say?

Become a Pro