Normally you yarn/npm install react, then use it with import React from 'react'
Say you want to debug a React source and you clone a GitHub repo.
How do you use the source in your project instead of the lib version?
- edit
To further develop philipheinser's answer, here's what I encountered with doing npm link draft-js-mention-plugin
npm link seems to run npm run build which is the scripts command in the package.json that you want to link.
with draft-js-mention-plugin, npm run build runs ../node_modules/.bin/rimraf lib and I had to go up a directory and run npm install to install the rimraf
draft-js-mention-plugin has parent draft-js-plugins and it has its own package.json