I am working on a web app with react js and I need to write some functions to run in the background of the app ( to save users id in a folder created with fs.writeFileSync() ).