This repository was archived by the owner on Jun 15, 2023. It is now read-only.
Commit 5dedb5b
JSX V4 (#547)
* react ppx v4 and parsing spread props
* change the empty record to "_" for jsx upper case
* change empty record to {key: None} for jsx upper case
* polishing the loc of react ppx
* implicit option type of @obj record update
* add match vbs for optional arg with default value
* add @optional record declarations
* fix missing pattern
* clean up codes and comments
* support React.forwardRef
* replace filterMap with std lib
* Add JSX V4 spec.
* typo
* JSX spec: move createElement to application.
Following https://forum.rescript-lang.org/t/jsx-v4-next-rescript-react-0-10-x/3431/10
* spec: comment on name
* spec: clean up file
* external
* Be consistent with interface
only show how to transform the arrow function.
* Update JSXV4.md
* restore React.createElement in application site
* spec: react fragment
* spec: tweak fragment.
* make react component name capitalized
* test: add test files
* fix ppx for forwardRef
* remove ref from props except forwardRef
* add test for forwardRef
* format
* remove uneccessary adding @optional attr from extracting props type
* indent by relocating every fn from jsxMapper
* remove unused jsxVersion
* jsx version check is conducted in compiler config side
* add new line
* update jsx ppx comment
* rename v3 -> v4, restore v3, add cli args
* add tests for v3 and v4 respectively
Co-authored-by: Cristiano Calcagno <[email protected]>1 parent fed1a27 commit 5dedb5b
File tree
29 files changed
+1815
-10
lines changed- cli
- scripts
- src
- tests/ppx/react
- expected
29 files changed
+1815
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
0 commit comments