A theoretical approach to electromagnetic reactions in light nuclei