whoo tha exactly what i want to do with my svgs thanks a lot broo god bless you. hare krishana !
@thedevlpr6843 жыл бұрын
You're welcome bro
@Mufees_mhd2 ай бұрын
i have 4 logos like these so i did this last method now i need to call this 4 times with in a card. so it's make some kind a code repeat and ugly. i wonder am i able to call these components like array maping?
@jotasenator3 жыл бұрын
great! I had a todo ..and it s about to change values inside SVG that I have rendered in my site..like variable's values that I obtain from other components ...what do you think about it?
@afrikanking40224 ай бұрын
I have a problem which I want to solve with svg. want a map of a country with all states and provinces. but I need these states to have either one of 3 states. One grey, light blue and dark blue based on voter numbers. I also want them to be clickable so that they can open another component
@tootyrnt55333 жыл бұрын
Is there any way I can create a reusable component to handle multiple SVGs? I have like 6 logos and it'd be a lot easier if i can use one component and just pass down the props.
@thedevlpr6843 жыл бұрын
That's doable for sure you just wrote the steps to create it 😅
@rubenverster2502 жыл бұрын
You'll have to basically create a higher order component that manages svgs XP
@raba6503 жыл бұрын
This is great, but what about packaged svg icons like react-icons where you don’t have access to the individual svg file for its React component?
@thedevlpr6843 жыл бұрын
Not sure as I haven't worked with react icons but id say they probably accept props to change the SVG look and feel
@awabelmahe97002 жыл бұрын
Thank you for the very helpful video. I didn't occur to me to convert the svg to a react component.
@thedevlpr6842 жыл бұрын
You are welcome
@zen123w Жыл бұрын
Great video and explanation!
@manshihudda7632 жыл бұрын
Hi , how to use JSON of 100 svg logo and edit in react, because i want to render 100 svg logo in my project and want to edit icon and text of svg logo
@prathmeshkalehere2 жыл бұрын
where did that came from?????
@JosephSackey5976 ай бұрын
It is self generated when you create an svg file.
@dylannoel1996Ай бұрын
g is like a div but for SVG
@ofir773 жыл бұрын
Great video thanks!!
@thedevlpr6843 жыл бұрын
You're welcome 😉
@shaileshrkumar68133 жыл бұрын
how to add svg in background ? is it possible
@himanshulal973 жыл бұрын
yes bro it is possible simply add background: url(relative path of that svg)
My svg is not rendering anything, it's fucking BLANK, I imported it just like u did, had the same className and React could definitely find the damn file
@youtubegarbage4u3 жыл бұрын
imagine you have like 50 svg images...so you have components for each of all 50 images???
@thedevlpr6843 жыл бұрын
No you can pass the image SVG as a child maybe..play around with it ;)
@rubenverster2502 жыл бұрын
HOC
@asnaos51872 жыл бұрын
You can use SVGR, because it allow import svg how ReactComponent and you can use svg as a component, like the one shown in the video