This React app allows users to fill in the input fields like first name, last name, and file name. Clicking the button will generate a download link to the created text file. The content is in JSON format. The important component accepts a URL prop that can either be a blob object or the location of the resource. If it's a resource URL, it will fetch the resource and call Response.blob() and allow the user to download the requested resource. The Fetch button below the form sends an HTTP GET request to the jsonplaceholder API and generates a download link to the fetched content. The demo can be found here.
-
Notifications
You must be signed in to change notification settings - Fork 0
YutaMoriJP/Download-Generated-Text-File
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published