Answer the question
In order to leave comments, you need to log in
How to remove prop type warning in React?
Used the Alert component from Element React.
https://elemefe.github.io/element-react/#/en-US/alert
<Alert title="" type="warning" description={
<span>
Click this button
<Button>
<span>Home</span>
</Button>
</span>
} showIcon={true} />
Answer the question
In order to leave comments, you need to log in
The description property must be passed a string, and you are passing an object.
An example of the correct use of the component:
<Alert title="Title string" description="Description string" showIcon />;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question