react-state-custom 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ {
2
+ "recommendations": [
3
+ "arcanis.vscode-zipfs"
4
+ ]
5
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "typescript.tsdk": ".yarn/sdks/typescript/lib",
3
+ "typescript.enablePromptUseWorkspaceTsdk": true,
4
+ "search.exclude": {
5
+ "**/.yarn": true,
6
+ "**/.pnp.*": true
7
+ }
8
+ }
package/.yarnrc.yml ADDED
@@ -0,0 +1 @@
1
+ nodeLinker: pnp
package/README.md ADDED
@@ -0,0 +1,57 @@
1
+ # My React Library
2
+
3
+ This is a simple React library created using Yarn, Vite, and TypeScript. It includes a sample component that can be used in your React applications.
4
+
5
+ ## Installation
6
+
7
+ To install the library, you can use Yarn:
8
+
9
+ ```bash
10
+ yarn add my-react-library
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ To use the `MyComponent` in your React application, you can import it as follows:
16
+
17
+ ```tsx
18
+ import { MyComponent } from 'my-react-library';
19
+
20
+ const App = () => {
21
+ return (
22
+ <div>
23
+ <MyComponent propName="value" />
24
+ </div>
25
+ );
26
+ };
27
+
28
+ export default App;
29
+ ```
30
+
31
+ ## Development
32
+
33
+ To start developing the library, clone the repository and install the dependencies:
34
+
35
+ ```bash
36
+ git clone <repository-url>
37
+ cd my-react-library
38
+ yarn install
39
+ ```
40
+
41
+ To run the development server, use:
42
+
43
+ ```bash
44
+ yarn dev
45
+ ```
46
+
47
+ ## Building
48
+
49
+ To build the library for production, run:
50
+
51
+ ```bash
52
+ yarn build
53
+ ```
54
+
55
+ ## License
56
+
57
+ This project is licensed under the MIT License. See the LICENSE file for more details.
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface MyComponentProps {
3
+ title: string;
4
+ description?: string;
5
+ }
6
+ declare const MyComponent: React.FC<MyComponentProps>;
7
+ export default MyComponent;
@@ -0,0 +1,3 @@
1
+ export { Context, getContext, useDataContext, useDataSource, useDataSourceMultiple, useDataSubscribe, useDataSubscribeMultiple, useDataSubscribeMultipleWithDebounce, useDataSubscribeWithTransform } from './state-utils/ctx';
2
+ export { createRootCtx } from './state-utils/createRootCtx';
3
+ export { useQuickSubscribeV2 as useQuickSubscribe } from './state-utils/useQuickSubscribeV2';