Search code examples
javascriptreactjsoperating-systemdevelopment-environmentyarnpkg

Is it possible to code on both Window and Linux with ONE project? (using Yarn, React)


I'm a beginner for programming.I use two computers with different operating systems; Windows and Ubuntu.

Working on React using Yarn, now I'm just working on each OS and merging them using Copy and Paste. However, I want to work for one project on both OS.

Are there any problems to do that? Or Are there any ways to work on both OS? (I guess, adding some code for javascript environment or for something)


Solution

  • Yes. I do it all the time. I have a Windows PC at work and Linux PC at home. Reactjs projects depend upon Nodejs, but not the host OS, except some Nodejs path variables in env. So as long as you have a proper Nodejs setup, it works exactly same.