Converting the challenge selection dialog to react