A Lightning component needs to display different content based on whether the user is on a mobile device or desktop. Which approach is recommended?
-
A
Use CSS media queries only
-
B
Use the formFactor global value provider
-
C
Create separate components for each device
-
D
Check screen resolution in JavaScript