Reactive solids under shock compression