diff --git a/packages/examples/todomvc/webpack/dev_server.js b/packages/examples/todomvc/webpack/dev_server.js index daa6299..a5c64de 100644 --- a/packages/examples/todomvc/webpack/dev_server.js +++ b/packages/examples/todomvc/webpack/dev_server.js @@ -16,7 +16,7 @@ app.use(require('webpack-hot-middleware')(compiler)); app.get('/node_modules/todomvc-app-css/index.css', (req, res) => { res.sendFile(path.join( - __dirname, '../node_modules/todomvc-app-css/index.css')); + __dirname, '../../../../node_modules/todomvc-app-css/index.css')); }); app.get('/', (req, res) => { diff --git a/packages/focal/src/react/react.ts b/packages/focal/src/react/react.ts index 1552979..bddaa9f 100644 --- a/packages/focal/src/react/react.ts +++ b/packages/focal/src/react/react.ts @@ -256,7 +256,10 @@ function render

( for (let j = 0; j < i; ++j) newChildren[j] = propValue[j] } - newChildren[i] = observedValues[++k] + const childValue = observedValues[++k] + newChildren[i] = !childValue || childValue.key + ? childValue + : React.createElement(React.Fragment, { key: i }, childValue) } else if (newChildren) { newChildren[i] = propValue[i] }