What is the React equivalent of an Angular directive that only works on attributes?
It will be helpful to consider what Angular and React are each doing “behind the scenes.” In your Angular example, when you write <div classy/></div> you’re saying “render a DIV element and then attach to it the behaviors defined by the classy directive. In your React example, when you write <MyComponent classy></MyComponent>, you’re saying, “create … Read more