Global

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

View Source utils/debounce.js, line 1

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)

View Source utils/Hooks/useAxios.jsx, line 4

the data, error and loading state in an object

Object

# useViewport() → {number}

Hook to get the width of the page, for doing responsive

View Source utils/Hooks/useViewport.jsx, line 4

the viewport actual width

number