JQuery to React using $(this)