Is this the correct package to use for React component to read mongo json from URL?
scheung38 opened this issue · comments
I want to read mongo from URL in a React component:
$ mongo ec2-XX-XX-X-XXX.us-west-2.compute.amazonaws.com:27017
is this the correct package for this job? If not could you point out the relevant package for doing so programmatically?
No, you should do an XHR request to fetch the json. You can use fetch for example.