The present disclosure relates to methods of cell encapsulation using multi-component hydrogels. The hydrogels may include a natural component having nucleophilic functional groups as well as an electrophilic component. In embodiments, at least one of the components may be branched, having drugs, antibodies, enzymes, and the like incorporated therein, which may react with at least one of the other components of the hydrogel.