Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML Responsive Images Image Delivery with Srcset and Sizes Srcset with Picturefill

How do we use Picturefill with React?

Is there another way to deal with multiple images as content rather than background when using React?

1 Answer

Jonathan Pyper
Jonathan Pyper
354 Points

You could try srcset, although i am not sure how that helps with react.

<img 
   srcset=" 
       url size, 
       url size, 
       url size " 
   src="default url" 
>

https://html.com/attributes/img-srcset/