I agree with Duc, if your team is able to develop high quality widgets there's little risk. Obviously building custom widgets means you will have to think about delivering support on your widget.
If, instead of building widgets, you use a lot of HTML/JS snippets your apps might run into performance issues.