Closed jridgewell closed 7 years ago
@edoardocavazza: This may fix #69. Does https://github.com/jridgewell/babel-plugin-transform-incremental-dom/blob/e6bf5f51ec53c2e66ebb695bf5d6ff9d0503591b/test/fixtures/patch-root/69/actual.js match what you're doing?
@Tiendq: this may also fix your use case, though it will explicitly break my last code suggestion.
If you
import { patch } from “incremental-dom”
, then we will only allow the patch’sCallExpressions
to contain root JSX elements.