How to return div with custom attributes(Coding a Gutenberg Block)
You could try returning JSX, skipping the el part: return ( <div className=”review-widget” data-limit=”10″ > </div> ); It may also be that you need to quote the 10 in your original el example.