react-hooks
Here are 5,159 public repositories matching this topic...
-
Updated
Feb 27, 2021 - TypeScript
-
Updated
Feb 28, 2021 - JavaScript
-
Updated
Feb 24, 2021 - TypeScript
-
Updated
Jan 17, 2021 - JavaScript
-
Updated
Dec 11, 2020 - TypeScript
-
Updated
Feb 27, 2021 - JavaScript
Describe the bug
The following PR introduced some breaking change in typings: https://github.com/beautifulinteractions/beautiful-react-hooks/pull/156/files#diff-b52768974e6bc0faccb7d4b75b162c99R19
Argument of type '() => void' is not assignable to parameter of type 'any[]'.
Type '() => void' is missing the following properties from type 'any[]': pop, push, concat, join, and 27 more
100% code coverage
-
Updated
Feb 27, 2021 - JavaScript
react-hooks-testing-libraryversion: v5.0.3
Reproduction:
In a blank project, run:
npm install react-test-renderer @testing-library/react-hooks --save-dev
In test.js:
const { renderHook } = require('@testing-library/react-hooks');
function useExample() {
throw new Error('Message.');
}
renderHook(() => useExample());Run:
node test
-
Updated
Feb 28, 2021 - TypeScript
-
Updated
Feb 18, 2021 - TypeScript
-
Updated
Jan 31, 2021 - JavaScript
-
Updated
Jun 19, 2020 - JavaScript
-
Updated
Dec 30, 2020 - TypeScript
It's important, I think, if the goal is to communicate that this can replace React in more ways than function.
-
Updated
Feb 4, 2021 - TypeScript
-
Updated
Feb 28, 2021 - TypeScript
-
Updated
Sep 18, 2020 - JavaScript
Description
Graphql clients comparison (apollo client vs graphql-hooks vs urql).
Suggested implementation
List describing the advantages / disadvantages to other major clients. This library looks interesting but I don't see any advantage other file size.
-
Updated
Feb 28, 2021 - TypeScript
-
Updated
Feb 24, 2021 - TypeScript
-
Updated
Feb 20, 2021 - TypeScript
-
Updated
Dec 24, 2020 - JavaScript
-
Updated
Feb 2, 2021 - TypeScript
-
Updated
Aug 8, 2020 - JavaScript
Improve this page
Add a description, image, and links to the react-hooks topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the react-hooks topic, visit your repo's landing page and select "manage topics."
Current Behavior
The type
ErrorMessagedoesn't have an id property.Desired Behavior
It'd be nice
id?: stringwould be added to the typeErrorMessageand set on the outermost component that serves as error message.Suggested Solution
Add
id={this.props.id}to the outer component inErrorMessage.Who does this impact? Who is this