How import and export components (functions) in ReactJS?
I'm trying to export and import components in my project, but i don't getting. My code of the my main App: import React, { Component } from 'react'; import './App.css'; import Search from './Search'; export default class App extends Component { constructor() { super(); const peoples =[{id:0, name:"Jean"}, {id:1, name:"Jaquinha"}, {id:2, name:"Ricardo"}, {id:3, name:"JaCA"}, {id:4, name:"Letiiicia"}, {id:5, name:"Dai"}, {id:6, name:"Da iIIane"}, {id:7, name:"Tamy"}, {id:8, name:"Tamyresss"}, {id:9, name:"Tamyres"}, {id:10, name:"Abeu"}, {id:11, name:"Abellll"}]; this.state = { elementsPerPage:3
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.