Then we have to use event-delegation
at this context,
$(document).on('click',"button[data-follow=follow]",function(e) {//scenario1});
$(document).on('click',"button[data-follow=unfollow]",function(e) {//scenario2});
See i had suggested document
to implement event delegation but you should use any closest static parent in relative to the supplied selector.