Is there a way to pass functions as props or while registering the components. As I am facing issue while Registering below AntD Components. I have grouped them as per the need of function. Because of this I’m not able to test these directly on Plasmic Studio.
A. Below components need render functions e.g. RenderItem to be passed as props :
Transfer
List
Tree
B. Components getting displayed with methods like on, show (Conditional) :
Notification
Message
Modal
import { message, Button } from 'antd';
const info = () => {
[message.info](http://message.info)('This is a normal message');
};
<Button type="primary" onClick={info}>
Display normal message
</Button>