0

I'm having trouble determining how to reference my react fork in a project I want to use it in while a PR request I made is being reviewed. Since the root package.json is react-tools, I can't use the npm github references. I also haven't had success making a local path reference to any of the react subdirectories I've tried.

How can i use my version of react in my separate project?

Deduplicator
  • 44,692
  • 7
  • 66
  • 118
Nathan Hagen
  • 12,440
  • 4
  • 26
  • 31

1 Answers1

1

The solution here turned out to be npm link

In ./project_dir, run npm link /path/to/react/repo/build/npm-react

This creates a sym link from the react npm module to the project node_modules/react directory.

Nathan Hagen
  • 12,440
  • 4
  • 26
  • 31