UNPKG
@trussworks/react-uswds
Version:
latest (11.0.0)
11.0.0
10.2.0
10.1.0
10.0.2
10.0.1
10.0.0
9.1.0
9.0.0
8.0.0
7.0.0
6.2.0
6.1.0
6.0.0
5.5.0
5.4.0
5.3.1
5.3.0
5.2.0
5.1.1
5.1.0
5.0.0
4.2.1
4.2.0
4.1.1
4.1.0
4.0.0
3.2.0
3.1.0
3.0.2
3.0.1
3.0.0
2.9.0
2.8.0
2.7.2
2.7.1
2.7.0
2.6.0
2.5.0
2.4.1
2.4.0
2.3.0
2.2.0
2.1.0
2.0.0
1.17.0
1.16.0
1.15.0
1.14.0
1.13.2
1.13.1
1.13.0
1.12.2
1.12.1
1.12.0
1.11.0
1.10.0
1.9.3
1.9.2
1.9.1
1.9.0
1.8.0
1.7.0
1.6.1
1.6.0
1.5.0
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0
React USWDS 3 component library
github.com/trussworks/react-uswds
trussworks/react-uswds
@trussworks/react-uswds
/
lib
/
components
/
hoc
/
withDeprecationWarning.d.ts
3 lines
(2 loc)
•
200 B
TypeScript
View Raw
1
2
3
import
{
ComponentType
,
JSX
}
from
'react'
;
export
declare
function
withDeprecationWarning<P
extends
JSX
.
IntrinsicAttributes
>(
Component
:
ComponentType
<P>,
warning
:
string
):
(
props
: P
) =>
JSX
.
Element
;