So from the code above you could change it to: const styles = { color: “yellow”, fontSize: 24}; and then in JSX declare <div style={ styles } ...> 14. Reply ...
確定! 回上一頁