-
Notifications
You must be signed in to change notification settings - Fork 20
Background image not rendereing from props #3
Comments
It looks like that the opacity is not switched from |
There were warnings about the imageSrc={} supposed to be a string value in initial state in the parent component, which in my case was actually a boolean but changing this did not help. Also changed the opacity from string to a number due some warnings. Now when I console.log(heroImage) in the child component Hero.js right before it's supposed to throw it to the imageSrc={}, console shows that it renders empty few times. This is due my parent component gets the image from source later than the hero actually renders maybe? I'm not sure how to fix this.. |
Can you test it with the newest version ([email protected])? |
Great thanks, works like a charm now! |
Hi, I'm having problems with rendering my BG in the lazy-hero!... can you help me figure ot the reason for this? Thank you!
This is how the browser looks:
This is my index where I import my Hero.js:
In Hero.js I import lazy-hero

Do you have an idea about why the background-image: attribute doesn't show the picture?
The text was updated successfully, but these errors were encountered: