react size decorator,
adds width and height props to component (also recalculates this props on resize)
install
npm install --save size-decorator
usage
;@ { superprops; } { console return <div style=width: 100 height: 100>HELLO</div>; }
or if you want width and height parameters on server
@