Telash
Telash14mo ago

Should I pass props or use imports inside the component?

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