芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/www/wp-content/plugins/better-wp-security/core/packages/hocs/src/with-props.js
/** * WordPress dependencies */ import { Component } from '@wordpress/element'; import { createHigherOrderComponent } from '@wordpress/compose'; /** * Higher-order component that applies props to the inner component. * * @param {Object} props * * @return {import('@wordpress/element').Component} Debounced component. */ export default function withProps( props ) { return createHigherOrderComponent( ( WrappedComponent ) => { return class Wrapper extends Component { render() { return
; } }; }, 'withProps' ); }