Crib vs sleeper in bedroom

Will you put baby straight in their crib or in a bassinet or one of those attachable to the bed sleepers in your room for the first few months? How long would you do that for? Is it necessary?