i play drums in several bands and have been playing drums in bands for many years. i got into producing my own electronic music within the past two years and have slowly introduced electronic aspects into each of my bands. the real key has been making sure that i have proper monitoring of the beat-dependent parts. so long as i can hear the beat clearly, i can keep in sync with it, and the rest of the band can stay in sync with me and it’s pretty smooth sailing. there are occasional points where we might deviate from the tempo slightly, but are able to slide back into it pretty easily.
i would highly recommend making sure that your drummer can hear what you’re doing very clearly. it is also dependent on the drummer’s ability to play along to a consistent tempo; some drummers struggle with it. people try to say that having a drummer play to a click makes the music sound robotic and unnatural. i completely disagree. the drummer can easily play in a way that sounds natural and play with plenty of swing while staying on time.
how you go about doing it is up to you. it might even be helpful to generate a click that is synced to your setup, and send that click to the drummer via headphones/in-ear monitors. i occasionally use this free app on my phone, and send the click to my headphones through a mixer. works great!
tl;dr - make sure drummer has ample monitoring of any beat-dependent parts of your sound. and practice practice practice!