react js style a component code example Example: react div style return <div style={{display: 'inline-block'}}>