: resolveFrom(path.resolve('node_modules'), 'react-dom'),\n },\n }\n return config\n}\n\nconst includeSrcDirectory = config =\u003E {\n config.resolve = {\n ...config.resolve,\n modules: [path.resolve('src'), ...config.resolve.modules],\n }\n return config\n}\n\nmodule.exports = [\n ['use-babel-config', '.babelrc'],\n ['use-eslint-config', '.eslintrc'],\n fixLinkedDependencies,\n \u002F\u002F includeSrcDirectory,\n]\n","directory_shortid":null,"id":"f5aaddf6-85df-488e-9405-553f981cf97f","inserted_at":"2022-05-10T19:50:39","is_binary":false,"sha":null,"shortid":"ry__IbHdU9","source_id":"963a1b07-9b3d-40aa-a3ff-0c6f74d3e977","title":".rescriptsrc.js","updated_at":"2022-05-10T19:47:28","upload_id":null},{"code":"import React, { Component } from \"react\";\r\n\r\n\u002F\u002F components\r\nimport Datatable from \".\u002FDataTable\";\r\nimport Loading from \".\u002FLoading\";\r\n\r\n\u002F\u002F utilities\r\nimport makeData from \"..\u002Futilities\u002FmakeData\";\r\n\r\nconst data = makeData(200);\r\n\r\nconst columns = [\r\n {\r\n Header: \"First Name\",\r\n accessor: \"firstName\"\r\n },\r\n {\r\n Header: \"Last Name\",\r\n accessor: \"lastName\"\r\n },\r\n {\r\n Header: \"Age\",\r\n accessor: \"age\"\r\n },\r\n {\r\n Header: \"Visits\",\r\n accessor: \"visits\"\r\n },\r\n {\r\n Header: \"Status\",\r\n accessor: \"status\"\r\n },\r\n {\r\n Header: \"Profile Progress\",\r\n accessor: \"progress\"\r\n }\r\n];\r\n\r\nconst initialState = {\r\n pageSize: 10,\r\n pageIndex: 0\r\n};\r\n\r\nclass PeopleDataTable extends Component {\r\n \u002F\u002F Loading must be handled here because DataTable MUST have data on load\r\n renderTable() {\r\n if (!data) {\r\n return \u003CLoading \u002F\u003E;\r\n } else {\r\n return (\r\n \u003CDatatable data={data} columns={columns} initialState={initialState} \u002F\u003E\r\n );\r\n }\r\n }\r\n\r\n render() {\r\n return \u003C\u003E{this.renderTable()}\u003C\u002F\u003E;\r\n }\r\n}\r\n\r\nexport default PeopleDataTable;\r\n","directory_shortid":"Hk-OLZBuU9","id":"8f42484a-9136-467d-a537-8c6e3787fb0c","inserted_at":"2022-05-10T19:50:39","is_binary":false,"sha":null,"shortid":"H1-gOU-rdI5","source_id":"963a1b07-9b3d-40aa-a3ff-0c6f74d3e977","title":"PeopleDataTable.js","updated_at":"2022-05-10T19:58:34","upload_id":null}],"npm_registries":[],"git":null,"updated_at":"2022-05-10T19:59:54","source_id":"963a1b07-9b3d-40aa-a3ff-0c6f74d3e977","external_resources":[],"user_liked":false,"view_count":127,"picks":[],"version":7,"permissions":{"prevent_sandbox_export":false,"prevent_sandbox_leaving":false},"privacy":0,"original_git_commit_sha":"9a2874c922d33e3ed1dba57df43058417f2644cf","forked_template":{"color":"#61DAFB","icon_url":"github","id":"49be547a-e8a4-46e2-a4f4-c9acdfae370d","official":false,"published":true,"title":"react-table-usepagination","url":null},"is_frozen":false,"room_id":null,"always_on":false,"inserted_at":"2022-05-10T19:50:40","feature_flags":{"comments":false,"container_lsp":false},"forked_template_sandbox":{"alias":"react-table-usepagination-gx1314","custom_template":{"color":"#61DAFB","icon_url":"github","id":"49be547a-e8a4-46e2-a4f4-c9acdfae370d","official":false,"published":true,"title":"react-table-usepagination","url":null},"git":{"branch":"main","commit_sha":"9a2874c922d33e3ed1dba57df43058417f2644cf","path":"","repo":"react-table_usePagination","username":"ncoughlin"},"id":"gx1314","inserted_at":"2022-05-10T19:47:28","privacy":0,"template":"create-react-app","title":"react-table-usepagination","updated_at":"2022-05-13T11:55:29"},"base_git":null,"template":"create-react-app","team":{"avatar_url":"https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3167700?v=4","id":"c49df6d7-34f5-4a2b-8f19-623ba3cf8704","name":"ncoughlin"},"like_count":0,"collection":false,"fork_count":0,"owned":false,"preview_secret":null,"title":"react-table_usePagination"};