Every approach has its pros and cons. OTOH the less you rely on third party deps, the less attack surface.