react write into json file

Solutions on MaxInterview for react write into json file by the best coders in the world

showing results for - "react write into json file"
Mandy
12 Jul 2020
1fs.writeFile('./myFile.json', JSON.stringify(updatedJSON), (err) => {
2        if (err) console.log('Error writing file:', err);
3    })
4})
5
Rafael
15 Feb 2017
1const updatedJSON = {
2    "name":"arif updated",
3    "surname":"shariati updated"
4}
5