Create a React class or set of classes to display a list of images so they space out and align evenly no matter how wide the screen resolution is. Example:
| [image] [image] [image] |
| [wide image] [wide image] |
| [image] [image] [image] |
Bonus points if you can add a click handler when one of the images is clicked it toggles hiding all of the other images. Example first click hides the other images, second click restores the other images.
A list of images: var imageList = [...]
The source example is located in the following sites.
- JS Fiddle: https://jsfiddle.net/josgraha/zgqssgmh
- JS Bin: https://jsbin.com/cetotu/edit?html,js,output
The source code is also pasted in the Gist below.
Either update the JS Fiddle or provide a project with a valid package.json