Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

React JS

#react
P
Coty B 405

@cotybro

Desktop design screenshot for the URL shortening API landing page coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
3intermediate
View challenge

Design comparison


SolutionDesign

Community feedback

@graynneji

Posted

Congratulations on completing this challenge When working with images in a web application, there are different ways to load them into your project. One way is to import individual images one by one, which can be time-consuming and cumbersome, especially when dealing with a large number of images. Alternatively, you can import the entire image folder or use the require function, which can simplify the process and make it more efficient.

Importing the entire image folder involves specifying the path to the folder containing all the images, and then accessing each image as needed. This approach can be useful when you have a large number of images, as it allows you to access them all at once without having to import them individually.

// Import all images in a folder
const images = require.context('./images', true);

// Access a specific image
const myImage = images('./my-image.jpg');

Marked as helpful

1

P
Coty B 405

@cotybro

Posted

@graynneji I actually didnt know that! ill have to look more into this thank you!!

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord