Is there a consensus for padding in React JSX? 2 spaces, 4 tabs, etc.
You should use the same indentation as all javascript code.
So the ecosystem response seems to use mostly double spaces, so I would use this to ensure consistency.
Most popular libraries tend to use 2 spaces, but you can change this if you and your team agree with the standard.
eslint, . javascript Airbnb.
You must use an identity style that matches your style. You can use something like ESlint to define a convention. 4 or 2 spaces or tabs is just a style.