I am trying to set inline styles in my React application. In this case, for a span:
JSX and html are different things and we have a little different syntax to add inline css in jsx I would recommend to go through whole documentation for better understanding https://www.w3schools.com/react/react_css.asp