add react protocols for component