Manipulating Contentful Images via url parameters

Hi @jayshay

Apologies, I had some typos and incorrect values in my previous example. I took a look at the Contentful API, and a better example would be below:

const fit = state.fill || 'fill';
const width = '100'
return `${state.providerItem.fields.providerImage.fields.file.url}?fit=${fit}&w=${width}`

the fit value was just an example showing you can pull from values in state. If you want a default, you can put the || 'fill' or you can leave out as needed. Also, looks like the width value should just be a number, no px

Finally, since the returned value is a string based on variables, it should actually be a template literal and the copied code above shows the actual syntax to achieve that

Take a look and see if that works better for you!