Any idea how to get rid of these React console error messages regarding inline CSS?

Here’s the error I’m talking about:

I’ve been searching the web and posts from a year and a half ago state that React dev team will fix the issue “soon.” I recently updated my React version to the latest version and still get the same error. There is a problem when passing only a digit to a property. Doing things like style={{“right”:“2”}} gives these errors.

I don’t really care too much about the errors generally, but they do slow down my app a little bit as a result of the 10 or so errors that are printed to my console.

Any help would be appreciated.

Try using with units
style={{ right: '2px'}}

This worked. But I could swear I tried adding px but it never moved the elements I needed it to work.

Thanks!