'Writing inline css in React.js

How to write inline CSS in react.js

<div className="p-3" style={{backgroundImage: linear-gradient(to right top,#FB0712,#124FEB)}}>

getting an error(Error: error: Expected ',', got 'right') with the above code



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source