DEV Community 👩‍💻👨‍💻

React Patterns
React Patterns

Posted on

Proxy Component

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:

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.