A proxy component is a placeholder component that can be rendered to or from another component. In short a proxy component is a reusable component.
Example:
import React from 'react'
class Button extends React.Component {
render() {
return <button type="button">My Button</button>
}
}
class App extends React.Component {
render() {
return <Button />
}
}
export default App
React Patterns
To learn more React Patterns visit: https://reactpatterns.js.org
To get the latest React patterns follow/star/like us on:
- Twitter: @reactjspatterns
- Github: reactpatterns
- Facebook: reactjspatterns
Top comments (0)