Q. Which attribute is used to specify inline styles in React?

  • (A) style (with an object)
  • (B) class
  • (C) className
  • (D) css
πŸ’¬ Discuss
βœ… Correct Answer: (A) style (with an object)
Explanation: The style attribute takes a JavaScript object with camelCase properties.
Explanation by: Mr. Dubey
The style attribute takes a JavaScript object with camelCase properties.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
95
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate