reactComponent: fix type
5.0.0