react-better-html 1.0.2 → 1.0.4
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.
- package/dist/example/src/App.d.ts +3 -0
- package/dist/example/src/App.jsx +10 -0
- package/dist/example/src/index.d.ts +1 -0
- package/dist/example/src/index.jsx +12 -0
- package/dist/src/components/Div.d.ts +6 -0
- package/dist/src/components/Div.jsx +7 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +8 -0
- package/dist/src/types/types.d.ts +1 -0
- package/dist/src/types/types.js +2 -0
- package/package.json +7 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const react_1 = require("react");
|
|
4
|
+
const react_better_html_1 = require("react-better-html");
|
|
5
|
+
function App() {
|
|
6
|
+
return (<>
|
|
7
|
+
<react_better_html_1.Div>Hello there</react_better_html_1.Div>
|
|
8
|
+
</>);
|
|
9
|
+
}
|
|
10
|
+
exports.default = (0, react_1.memo)(App);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = require("react");
|
|
7
|
+
const client_1 = require("react-dom/client");
|
|
8
|
+
const App_1 = __importDefault(require("./App"));
|
|
9
|
+
const root = (0, client_1.createRoot)(document.getElementById("root"));
|
|
10
|
+
root.render(<react_1.StrictMode>
|
|
11
|
+
<App_1.default />
|
|
12
|
+
</react_1.StrictMode>);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Div = void 0;
|
|
7
|
+
const Div_1 = __importDefault(require("./components/Div"));
|
|
8
|
+
exports.Div = Div_1.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-better-html",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A component library for react that is as close to plane html as possible",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
"default": "./dist/index.js"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/krissvv/react-better-html.git"
|
|
18
|
+
},
|
|
15
19
|
"scripts": {
|
|
16
20
|
"build": "tsc",
|
|
17
21
|
"deploy": "npm run build && npm publish"
|
|
@@ -22,10 +26,11 @@
|
|
|
22
26
|
"html",
|
|
23
27
|
"better"
|
|
24
28
|
],
|
|
25
|
-
"author": "kriss.vv",
|
|
29
|
+
"author": "Kristiyan Valchev (kriss.vv)",
|
|
26
30
|
"license": "ISC",
|
|
27
31
|
"devDependencies": {
|
|
28
32
|
"@types/react": "^18.3.3",
|
|
33
|
+
"@types/react-dom": "^18.3.0",
|
|
29
34
|
"react": "^18.0.0",
|
|
30
35
|
"react-dom": "^18.0.0",
|
|
31
36
|
"typescript": "^5.5.3"
|