no message
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* @Author: chenxuan
|
||||
* @Date: 2021-11-22 12:52:57
|
||||
* @LastEditTime: 2022-01-19 15:29:29
|
||||
* @LastEditors: chenxuan
|
||||
*/
|
||||
import React from "react";
|
||||
export default function Hoc(WithComponent, title) {
|
||||
return class HocCpmponent extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<React.Fragment>
|
||||
<h1>参数:{title}</h1>
|
||||
<WithComponent
|
||||
title="title-呵呵呵呵呵呵呵呵!"
|
||||
name="name-陈轩陈轩!"
|
||||
></WithComponent>
|
||||
</React.Fragment>
|
||||
);
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user