Skip to content

Commit

Permalink
feat: rename to with-props
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed Sep 1, 2024
1 parent b2a7d1a commit 6e262c0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# react-with-props
# with-props
> Enhance component with preset properties.
[![version][version-image]][version-url]
Expand All @@ -8,12 +8,12 @@

## installation
```shell
npm install @jswork/react-with-props
npm install @jswork/with-props
```

## usage
```js
import withProps from '@jswork/react-with-props';
import withProps from '@jswork/with-props';
import React from 'react';

interface MyComponentProps {
Expand Down Expand Up @@ -43,20 +43,20 @@ export default App;

## types
```ts
/// <reference types="@jswork/react-with-props/global.d.ts" />
/// <reference types="@jswork/with-props/global.d.ts" />
```

## license
Code released under [the MIT license](https://github.com/afeiship/react-with-props/blob/master/LICENSE.txt).
Code released under [the MIT license](https://github.com/afeiship/with-props/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/react-with-props
[version-url]: https://npmjs.org/package/@jswork/react-with-props
[version-image]: https://img.shields.io/npm/v/@jswork/with-props
[version-url]: https://npmjs.org/package/@jswork/with-props

[license-image]: https://img.shields.io/npm/l/@jswork/react-with-props
[license-url]: https://github.com/afeiship/react-with-props/blob/master/LICENSE.txt
[license-image]: https://img.shields.io/npm/l/@jswork/with-props
[license-url]: https://github.com/afeiship/with-props/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-with-props
[size-url]: https://github.com/afeiship/react-with-props/blob/master/dist/index.min.js
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/with-props
[size-url]: https://github.com/afeiship/with-props/blob/master/dist/index.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/react-with-props
[download-url]: https://www.npmjs.com/package/@jswork/react-with-props
[download-image]: https://img.shields.io/npm/dm/@jswork/with-props
[download-url]: https://www.npmjs.com/package/@jswork/with-props
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"name": "@jswork/react-with-props",
"name": "@jswork/with-props",
"version": "1.0.0",
"description": "Enhance component with preset properties.",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
"browser": "./dist/index.umd.js",
"types": "./dist/index.d.ts",
"files": [
"dist",
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
},
"include": [
"src",
"global.d.ts",
"__tests__"
]
}

0 comments on commit 6e262c0

Please sign in to comment.