React, JavaScript, Technology, Programming, Productivity.
need those extra props to function. What these extra props do is couple this preferOfficial setting with your component and makes any use of the component outside that context feel really unnatural. Bridging the gap So if the logic for switching the picture URL doesn’t belong in the component