Thankyou so much!! I spent almost all day trying to load local images using require from the src folder and couldnt find anything useful on stack overflow, your solution was the simplest and easiest , cant state how much I appreaciate this video, Thanks again and again!!
Thank you for this video tutorial!! I appreciate the fact that you use 'what if' scenerios in your tutorial. Many so-called js 'teachers' dont do that.
You know this content is very resourceful, showing 7 different ways to include images in react - helped me overcome the hurdle of including images in ReactJs. Thanks, much appreciated.
Great explanation. I always see different methods of using images in react js that confuse. This video shows every method in detail. Thank you for that. Which method is best or preferable?
Hi, tks for your great tutorial. But, how can I add a gradient effect color over the image in CSS? I've try too many way forms, but nothing happens... Ex.: ..CSS: background-image: linear-gradient (yellow, red, url('../img/image.jpg));
Try rgba values for colors. You need alpha value as well. Color should not be of 100% depth. Color should use alpha value or some opacity. Then Image below color gradient will be visible. Also you need direction for gradient. background-image: linear-gradient(to right bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.8), url('../img/image.jpg')); 0,0,0 is rgb value for color and 0.5 an 0.8 is alpha value / opacity. And thanks for visiting webstylepress.
@@reynice2068 anything which is outside the src folder isn't recognised by react ,,,,,,I just moved the image folder inside my src ...there are also other methods for it,,,,don't know abt the update ....hope u have found a solution