Revised React integration