Gathering detailed insights and metrics for react-fetch2
Gathering detailed insights and metrics for react-fetch2
Gathering detailed insights and metrics for react-fetch2
Gathering detailed insights and metrics for react-fetch2
npm install react-fetch2
Typescript
Module System
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
18 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Dec 13, 2021
Latest Version
1.0.12
Package Id
react-fetch2@1.0.12
Unpacked Size
6.64 kB
Size
2.48 kB
File Count
9
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
For running example, visit codesand box link here.
1import {reactFetch, reactAxios} from 'react-fetch2'; 2import './App.css'; 3 4function App() { 5 return ( 6 <div> 7 <ReactFetchEg /> 8 <ReactAxiosEg /> 9 </div> 10 ); 11} 12function ReactFetchEg() { 13 const anecdotes = reactFetch('https://loveapi.ml/fso/anecdotes.json').json(); 14 const patients = reactFetch('https://loveapi.ml/fso/patients.json').json(); 15 // From anecdoes and patients: you can access the data, loading<boolean>, loaded<boolean>, error<string>, and refreshFn<function>. 16 17 const loading = anecdotes.loading && patients.loading; 18 console.log(patients); 19 20 const refreshAllFn = () => { 21 anecdotes.refreshFn(); 22 patients.refreshFn(); 23 }; 24 25 return ( 26 <div> 27 {loading ? ( 28 'Loading...' 29 ) : ( 30 <> 31 <pre>{JSON.stringify(anecdotes.data, null, 2)}</pre> 32 <pre>{JSON.stringify(patients.data, null, 2)}</pre> 33 </> 34 )} 35 <button onClick={refreshAllFn}>Refresh all data...</button> 36 </div> 37 ); 38} 39 40function ReactAxiosEg() { 41 const anecdotes = reactAxios('https://loveapi.ml/fso/anecdotes.json'); 42 // From anecdotes: you can access the data, loading<boolean>, loaded<boolean>, error<string>, and refreshFn<function>. 43 44 return ( 45 <div> 46 {anecdotes.loading ? ( 47 'Loading...' 48 ) : ( 49 <> 50 <pre>{JSON.stringify(anecdotes.data, null, 2)}</pre> 51 <button onClick={() => anecdotes.refreshFn()}> 52 Refresh Anecdotes 53 </button> 54 </> 55 )} 56 </div> 57 ); 58} 59export default App;
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/18 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
29 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More