Do not keep any open containers of food outside or around your tent or camper. Forging bears will find any such items. The National Park Service says hikers should never have food more than an arm's length away. All food and any other scented item must be stored in bear-safe containers.
If you do have a bear visit the camp, do nothing to encourage it to stay. Make as much noise as possible. If you are in a group, get everyone to stand together to present a larger, solid figure to the bear, but do not surround it. According to the NPS, these moves will hopefully restore the bear's natural fear of people and it will leave on its own.
Keep at least 50 yards between yourself and a bear at all times. Keep moving if you see one, and try to avoid breaking into a run. Never approach a cub, and never feed a bear.