Telash
Telash15mo ago

Should I pass props or use imports inside the component?

No description
12 Replies
Telash
TelashOP15mo ago
I currently use imports inside the comp what's best?
ghardin137
ghardin13715mo ago
Do you think you’d change the images on the fly? Have different left arrows at different times?
Telash
TelashOP15mo ago
Same arrows images that flips between 3 images
ghardin137
ghardin13715mo ago
Then I’d say import them Doesn’t seem like they need to be props
Telash
TelashOP15mo ago
Bro did you just Responded in 4s
ghardin137
ghardin13715mo ago
I just happened to be looking at discord and the mobile app has notifications built in
Telash
TelashOP15mo ago
They can be props, idk which way is best
ghardin137
ghardin13715mo ago
I would import them in the component if they aren’t changing at runtime
Telash
TelashOP15mo ago
Changing at runtime meaning?
ghardin137
ghardin13715mo ago
Like some uses of that component have different or arbitrary images
Telash
TelashOP15mo ago
Ok, ty:> I also think props is silly coz more code In this case
ghardin137
ghardin13715mo ago
Yup