DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
React Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
React
A widely-shared utility function needs a change for one specific feature's requirement. What's the recommended approach?
A
Modify the shared function directly, since it's more convenient
B
Extract a new, specifically-named variant for that feature's need, leaving the original shared function unchanged for its other consumers
C
Delete the shared function and inline the logic everywhere
D
Move the shared function into that one feature's folder, breaking every other consumer's import
Check Answer