React implementation