为什么我不能在正常react中使用react-native样式样式?

因此,我最近一直在编写react-native方式,而不是react,我注意到我可以在react中对样式进行样式化,这是什么危害?

例如 使用react而不是classNames我可以简单地做

<div style={styles.something)></div>
const styles = { something: { backgroundColor: "red" } }

这样做有什么害处?