1.0.1 • Published 10 months ago
custom-endpoint-accessor v1.0.1
custom-endpoint-accessor
How to use
... import { getJSONData } from 'custom-endpoint-accessor'; ...
function App() { ...
const handleClick = () => { getJSONData(pageNum).then(res => { if (res.type == 'success') console.log(res.data); }); }
... }
export default App;