I've been tasked with refactoring the React UI in a project that has two nodejs projects in it (both with React). Currently both nodejs projects have the same UI components. My question is, is there a way to move the common components to a shared folder outside of the nodejs project folder?
|-- Main Project
|-- Nodejs Project1
|-- Nodejs Project2
|-- Common Folder <--- Move Common Components Here
I've tried referencing the files through relative and direct paths, but node seems to freak out whenever I try to access anything outside of it project folder.