React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.
Check the render method of `App`.
in App
Hey @lapolonio I think the issue is in how you’re requiring the React components differently than the sample you’re working from. The example is using ES6 imports but you’re using ES5 requires. The result is that in the sample what ReactTable represents is a different context than what it represents in your code.
Looking at the npm package docs, there’s an ES5 example that shows adding the default property to the require, so this line would look like this:
I can’t say that’s the only change that will be required, but that at least gets me something roughly approximating a “table” in a remix of your project.
The project you mentioned as a source handles the react-table styles in a clever way - they used Express routing to render the node module’s included stylesheet:
That assume a css link like <link rel="stylesheet" href="/style.css">, but you could change that as you needed if you have other styles in style.css you want to keep.
I’m sure there might be more “webpack-y” ways to do that though - I’m not a webpack expert.