Skip to content

Commit 278ba35

Browse files
Andreas Opferkuchpiotrwitek
Andreas Opferkuch
authored andcommitted
Update README - no generics for ReactElement (#162)
Fixes #161
1 parent 2dfa465 commit 278ba35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const withState = <P extends WrappedComponentProps>(
149149
) => { ...
150150
```
151151
152-
#### `React.ReactElement<P>` or `JSX.Element`
152+
#### `React.ReactElement` or `JSX.Element`
153153
Type representing a concept of React Element - representation of a native DOM component (e.g. `<div />`), or a user-defined composite component (e.g. `<MyComponent />`)
154154
```tsx
155155
const elementOnly: React.ReactElement = <div /> || <MyComponent />;

README_SOURCE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const withState = <P extends WrappedComponentProps>(
149149
) => { ...
150150
```
151151
152-
#### `React.ReactElement<P>` or `JSX.Element`
152+
#### `React.ReactElement` or `JSX.Element`
153153
Type representing a concept of React Element - representation of a native DOM component (e.g. `<div />`), or a user-defined composite component (e.g. `<MyComponent />`)
154154
```tsx
155155
const elementOnly: React.ReactElement = <div /> || <MyComponent />;

0 commit comments

Comments
 (0)