as long as you haven't painted the bits inside they'll be fine
you need proper cv joint grease to put back in, DON'T get it ANYWHERE near anything you ever want to touch or use again though, it won't come out and it'll stay on your hands for weeks
put grease inside the joint and move it about a bit until all the bits are coated, then squeeze some more into the boot before you put it back over again