One of the main reasons that inline styling is not a good choice for your application is because it does not support (or it has really poor support) for CSS features. Every application nowadays might have to end up using some selectors such as :hover , :active , :focused , etc.
Why you shouldn't use inline styling in production React apps
blog.logrocket.com > why-you-shouldnt-use-inline-styling-in-production-r...
1. Insert an object with the styling information: class MyHeader extends React. ...
2. Use backgroundColor instead of background-color : class MyHeader extends React. ...
3. Create a style object named mystyle : class MyHeader extends React.
Styling React Using CSS - W3Schools www.w3schools.com > react > react_css
However, it presents a potential maintainability issue since the HTML and the associated styles are tightly coupled to one another. This can make it harder to split work between different members of a team and can bloat the HTML file.
CSS Inline styles and why they are considered harmful for accessibility
www.nomensa.com > blog > css-inline-styles-and-why-they-are-considered...
2 Answers. Inline styles cannot be used to target pseudo-classes or pseudo-elements. You need to use a stylesheet. Try to change your logic before trying this approach.
Inline styling with React - Stack Overflow
stackoverflow.com > questions > inline-styling-with-react