Add js web stuff to landing page + documentation
This commit is contained in:
15
go/jsruntime/runtime/solid-js/h/jsx-runtime/dist/jsx.cjs
vendored
Normal file
15
go/jsruntime/runtime/solid-js/h/jsx-runtime/dist/jsx.cjs
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
|
||||
var h = require('solid-js/h');
|
||||
|
||||
function Fragment(props) {
|
||||
return props.children;
|
||||
}
|
||||
function jsx(type, props) {
|
||||
return h(type, props);
|
||||
}
|
||||
|
||||
exports.Fragment = Fragment;
|
||||
exports.jsx = jsx;
|
||||
exports.jsxDEV = jsx;
|
||||
exports.jsxs = jsx;
|
||||
10
go/jsruntime/runtime/solid-js/h/jsx-runtime/dist/jsx.js
vendored
Normal file
10
go/jsruntime/runtime/solid-js/h/jsx-runtime/dist/jsx.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import h from 'solid-js/h';
|
||||
|
||||
function Fragment(props) {
|
||||
return props.children;
|
||||
}
|
||||
function jsx(type, props) {
|
||||
return h(type, props);
|
||||
}
|
||||
|
||||
export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs };
|
||||
8
go/jsruntime/runtime/solid-js/h/jsx-runtime/package.json
Normal file
8
go/jsruntime/runtime/solid-js/h/jsx-runtime/package.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "solid-js/h/jsx-runtime",
|
||||
"main": "./dist/jsx.cjs",
|
||||
"module": "./dist/jsx.js",
|
||||
"types": "./types/index.d.ts",
|
||||
"type": "module",
|
||||
"sideEffects": false
|
||||
}
|
||||
11
go/jsruntime/runtime/solid-js/h/jsx-runtime/types/index.d.ts
vendored
Normal file
11
go/jsruntime/runtime/solid-js/h/jsx-runtime/types/index.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
export type { JSX } from "./jsx.d.ts";
|
||||
import type { JSX } from "./jsx.d.ts";
|
||||
declare function Fragment(props: {
|
||||
children: JSX.Element;
|
||||
}): JSX.Element;
|
||||
declare function jsx(type: any, props: any): () => (Node & {
|
||||
[key: string]: any;
|
||||
}) | (Node & {
|
||||
[key: string]: any;
|
||||
})[];
|
||||
export { jsx, jsx as jsxs, jsx as jsxDEV, Fragment };
|
||||
4241
go/jsruntime/runtime/solid-js/h/jsx-runtime/types/jsx.d.ts
vendored
Normal file
4241
go/jsruntime/runtime/solid-js/h/jsx-runtime/types/jsx.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user