import React from 'react';
declare global {
namespace JSX {
interface IntrinsicElements {
'custom-element': {
children?: React.ReactNode;
title?: string
};
}
}
}
const element = <custom-element title="abc">hello world</custom-element>;
标签:react,Elements,element,React,Typescript,Custom From: https://www.cnblogs.com/Answer1215/p/17144611.html