Remove use of deprecated React APIs in smoke tests