Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > HTML / DHTML

Notices


 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 11-30-2017, 03:04 PM   #5
AmandaCherry
Registered User
 
Join Date: Nov 2017
Posts: 342
fs is a module implemented by node.js which is not provided by javascript itself. Maybe other environments provide fs as well, but react is just a module like fs, rather than another environment, so it can not provide extra module

Another thing, react code run in browser, where you expect fs refer to? Read every user's file system?

If you want to read your local csv file. You can use some bundler like Webpack which can bundle csv file into your output Javascript file. If reading local csv is what you want, you can do some thing like

const csv =require('/path/to/csv')
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
AmandaCherry is offline   Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
React JS Jessyk Programming General 2 07-24-2017 06:10 AM
React Native nehaxavier Programming General 0 07-21-2017 04:23 AM


All times are GMT -7. The time now is 01:47 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.