Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit ca3311d

Browse files
authored
Merge pull request #18 from ryansolid/hydrate
2 parents 793cc06 + 9068a48 commit ca3311d

File tree

72 files changed

+2387
-184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2387
-184
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,18 @@ The use of cloneNode improves repeat insert performance and precompilation reduc
6969
### moduleName (required)
7070
The name of the runtime module to import the methods from.
7171

72+
### generate
73+
The output mode of the compiler. Can be "dom"(default), "ssr", or "hydrate". "dom" is standard output. "ssr" is for server side rendering that is hydrateable. And "hydrate" is for the client that hydrates the previously server rendered markup.s
74+
7275
### delegateEvents
7376
Boolean to indicate whether to enable automatic event delegation on camelCase.
7477

7578
### contextToCustomElements
7679
Boolean indicates whether to set current render context on Custom Elements and slots. Useful for seemless Context API with Web Components.
7780

81+
### alwaysWrap
82+
Removes the need for `{( )}` syntax. All expressions will be dynamic. This can lead to severe performance degradation. Use at your own risk.
83+
7884
### alwaysCreateComponents
7985
Always use createComponent method instead of just calling the function. Needed to support class components.
8086

@@ -161,6 +167,7 @@ Components may have children. This is available as props.children. It may be a n
161167
This plugin also supports JSX Fragments with `<></>` notation. These will be compiled to arrays. The fragment syntax provides the convenience of being able to use the template syntax to wrap expressions.
162168

163169
## SVG
170+
164171
There is basic SVG support with this library. Most element/attributes should work but no support for namespaces yet.
165172
## Acknowledgements
166173

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "babel-plugin-jsx-dom-expressions",
33
"description": "A JSX to DOM plugin that wraps expressions for fine grained change detection",
4-
"version": "0.11.6",
4+
"version": "0.12.0",
55
"author": "Ryan Carniato",
66
"license": "MIT",
77
"repository": {
@@ -21,7 +21,7 @@
2121
"@babel/core": "7.6.0",
2222
"babel-plugin-tester": "^7.0.1",
2323
"coveralls": "3.0.6",
24-
"dom-expressions": "~0.11.3",
24+
"dom-expressions": "~0.11.4",
2525
"jest": "^24.9.0",
2626
"rollup": "^1.21.4",
2727
"rollup-plugin-node-resolve": "^5.2.0"

0 commit comments

Comments
 (0)