in React JS by
Q:

How to combine multiple inline style objects?

1 Answer

0 votes
by

You can use spread operator in regular React:

 <button style={{...styles.panel.button, ...styles.panel.submitButton}}>{'Submit'}</button>

If you're using React Native then you can use the array notation:

<button style={[styles.panel.button, styles.panel.submitButton]}>{'Submit'}</button>
Click here to read more about React JS
Click here to read more about Insurance

Related questions

0 votes
asked Mar 4, 2020 in React JS by JackTerrance
0 votes
asked Dec 21, 2020 in Informatica by SakshiSharma
0 votes
asked Mar 1, 2020 in React JS by RShastri
0 votes
asked Jan 29 in HTML by rajeshsharma
0 votes
asked Oct 22, 2020 in JAVA by sharadyadav1986
0 votes
asked Jan 14, 2020 in QuickTest Professional (QTP) by GeorgeBell
+1 vote
+2 votes
...