Ignore the slap and concentrate on the ball going in
This is almost never a technical foul and too many officials get caught up with this rule. The rule is intended to address unsportsmanlike conduct for slapping the backboard out of frustration, not hitting the backboard in an attempt to block a shot (even if you *know* that the player has no real chance of blocking it -- he might think he does!)