How to use HOC in React? #1
starlitnightsky
announced in
Announcements
Replies: 1 comment
-
It's simple.
}; // Use the Higher-Order Component {data.map((item) => ( {item.title} ))} ); } } export default withData(MyComponent); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, every one.
How to use HOC in React?
Beta Was this translation helpful? Give feedback.
All reactions