It is working in this example, but I dont think it is Clean Coding
import React from "react";
const App = () => {
return (
<div>
<Radio />
</div>
);
};
export default App;
const Radio = (props) => (
<div>
This is Radio
<FieldUpdate />
</div>
);
const FieldUpdate = (props) => <div>This is FieldUpdate</div>;
FieldUpdate.Radio = Radio;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…