Hi, I was testing the export by default in reactjs , but when using the server that brings npm , it does not visualize me the components, or anything like that.
This is the code I use in index.js
.
var React = require('react');
var ReactDOM = require('react-dom');
import tablaProductos from "./componentes/tablaProductos.js";
const app = document.getElementById('app');
ReactDOM.render(<tablaProductos/>, app);
And here is the code that I use in class tablaProductos
:
var React = require('react');
import busqueda from "./busqueda.js";
import products from "./products.js";
export default class tabaProductos extends React.Component{
constructor(){
super();
}
render(){
return(
<div>
<busqueda/>
<products/>
</div>
);
}
}
The problem is that it does not show on the page.