ScuttleBot
| f7eb47b… | lmata | 1 | /** |
| f7eb47b… | lmata | 2 | * Copyright (c) Microsoft Corporation. |
| f7eb47b… | lmata | 3 | * |
| f7eb47b… | lmata | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| f7eb47b… | lmata | 5 | * you may not use this file except in compliance with the License. |
| f7eb47b… | lmata | 6 | * You may obtain a copy of the License at |
| f7eb47b… | lmata | 7 | * |
| f7eb47b… | lmata | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| f7eb47b… | lmata | 9 | * |
| f7eb47b… | lmata | 10 | * Unless required by applicable law or agreed to in writing, software |
| f7eb47b… | lmata | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| f7eb47b… | lmata | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| f7eb47b… | lmata | 13 | * See the License for the specific language governing permissions and |
| f7eb47b… | lmata | 14 | * limitations under the License. |
| f7eb47b… | lmata | 15 | */ |
| f7eb47b… | lmata | 16 | |
| f7eb47b… | lmata | 17 | function jsx(type, props, key) { |
| f7eb47b… | lmata | 18 | return { |
| f7eb47b… | lmata | 19 | __pw_type: 'jsx', |
| f7eb47b… | lmata | 20 | type, |
| f7eb47b… | lmata | 21 | props, |
| f7eb47b… | lmata | 22 | key, |
| f7eb47b… | lmata | 23 | }; |
| f7eb47b… | lmata | 24 | } |
| f7eb47b… | lmata | 25 | |
| f7eb47b… | lmata | 26 | function jsxs(type, props, key) { |
| f7eb47b… | lmata | 27 | return { |
| f7eb47b… | lmata | 28 | __pw_type: 'jsx', |
| f7eb47b… | lmata | 29 | type, |
| f7eb47b… | lmata | 30 | props, |
| f7eb47b… | lmata | 31 | key, |
| f7eb47b… | lmata | 32 | }; |
| f7eb47b… | lmata | 33 | } |
| f7eb47b… | lmata | 34 | |
| f7eb47b… | lmata | 35 | // this is used in <></> notation |
| f7eb47b… | lmata | 36 | const Fragment = { __pw_jsx_fragment: true }; |
| f7eb47b… | lmata | 37 | |
| f7eb47b… | lmata | 38 | module.exports = { |
| f7eb47b… | lmata | 39 | Fragment, |
| f7eb47b… | lmata | 40 | jsx, |
| f7eb47b… | lmata | 41 | jsxs, |
| f7eb47b… | lmata | 42 | }; |