Methods
# debounce(func, timeout) → {function}
a debouncer for our responsive eventlistener.
Parameters:
| Name | Type | Description |
|---|---|---|
func |
function
|
function to debounce |
timeout |
number
|
timeout to reload the function |
debounced function
function
# useAxios(enpoints) → {Object}
Hook to fetch data from enpoint(s), using axios.
Parameters:
| Name | Type | Description |
|---|---|---|
enpoints |
Array.<string>
|
api 's enpoint(s) |
the data, error and loading state in an object
Object
# useViewport() → {number}
Hook to get the width of the page, for doing responsive
the viewport actual width
number