pass app atom into component constructor functions, instead of the app itself