Closed DanSallau closed 8 years ago
You have two issues that I can see:
incremental-dom
in the list of Babel plugins.Your render functions aren't returning JSX, they're returning strings that have JSX in them. That's not the same thing.
function myRedner(items) {
// This returns a String
return `<ul class="filter">${items}</ul>`;
}
function myRedner(items) {
// This returns a JSX
return <ul class="filter">{items}</ul>;
}
Please help . I installed this wonderfull tool following instructions from here https://www.npmjs.com/package/babel-plugin-incremental-dom. I had my webpack.config settings below.
I then added .babelrc after installing the plugins. The problem is, none of my jsx functions is translated into incremental-dom. Below is one of them in the file view.js.
I was expecting the above to the translated into incemental-dom yet it doesn't. ITs translated into js by babel. Please why isn't it working and how do i fix it ANy helpw ould be appreciated.