Revert "Updating component to work with latest React."

This reverts commit 7c1d6603af0284afc0b47e60c0f98b2d51b2206e.