var address = { street: 'teeman street', number: 29, postcode: '1984' city : 'Lagos' country: 'Nigeria' } const getAddress({street, number}) { return street + ' ' + number; } const jsx_element = <div> <h1>{getAddress(address)}</h1> </div>; ReactDOM.render( jsx_element, document.getElementById('root') );
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter