Changing the statistic to the relative risk does not change how we find the p-value (1-to-1 correspondence with the other statistics).
However, now we would also like a confidence interval for the corresponding parameter, the ratio of the underlying probabilities of allergy between these two treatments. When we produced confidence intervals for other parameters, we examined the sampling distribution of the corresponding statistic to see how values of that statistic varied under repeated random sampling. If the sampling distribution of the statistic was approximately normal and centered around the parameter, we said a 95% confidence interval could be something like statistic + z* x SE(statistic).
So now let’s examine the behavior of the relative risk of conditional proportions using the Analyzing Two-Way Tables applet to simulate the random assignment process (as opposed to simulating the random sampling from a binomial process) under the (null) assumption that there’s no difference between the two treatments probabilities of success.