: 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","id":"f5aaddf6-85df-488e-9405-553f981cf97f","is_binary":false,"title":".rescriptsrc.js","sha":null,"inserted_at":"2022-05-10T19:50:39","updated_at":"2022-05-10T19:47:28","upload_id":null,"shortid":"ry__IbHdU9","source_id":"963a1b07-9b3d-40aa-a3ff-0c6f74d3e977","directory_shortid":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","id":"8f42484a-9136-467d-a537-8c6e3787fb0c","is_binary":false,"title":"PeopleDataTable.js","sha":null,"inserted_at":"2022-05-10T19:50:39","updated_at":"2022-05-10T19:58:34","upload_id":null,"shortid":"H1-gOU-rdI5","source_id":"963a1b07-9b3d-40aa-a3ff-0c6f74d3e977","directory_shortid":"Hk-OLZBuU9"}],"feature_flags":{"comments":false,"container_lsp":false},"npm_registries":[],"title":"react-table_usePagination","ai_consent":false,"preview_secret":null,"fork_count":82,"inserted_at":"2022-05-10T19:50:40","updated_at":"2022-05-10T19:59:54","like_count":0,"team":{"id":"c49df6d7-34f5-4a2b-8f19-623ba3cf8704","name":"ncoughlin","settings":{"ai_consent":{"public_sandboxes":false,"private_sandboxes":false}},"subscription_type":null,"avatar_url":"https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3167700?v=4"},"is_sse":false,"source_id":"963a1b07-9b3d-40aa-a3ff-0c6f74d3e977","owned":false,"base_git":null,"permissions":{"prevent_sandbox_export":false,"prevent_sandbox_leaving":false},"settings":{"ai_consent":null},"forked_template_sandbox":{"alias":"react-table-usepagination-gx1314","id":"gx1314","title":"react-table-usepagination","template":"create-react-app","inserted_at":"2022-05-10T19:47:28","updated_at":"2022-05-13T11:55:29","git":{"path":"","branch":"main","repo":"react-table_usePagination","username":"ncoughlin","commit_sha":"9a2874c922d33e3ed1dba57df43058417f2644cf"},"privacy":0,"custom_template":{"id":"49be547a-e8a4-46e2-a4f4-c9acdfae370d","title":"react-table-usepagination","color":"#61DAFB","v2":false,"url":null,"published":false,"icon_url":"github","official":false}},"original_git":{"path":"","branch":"main","repo":"react-table_usePagination","username":"ncoughlin","commit_sha":"9a2874c922d33e3ed1dba57df43058417f2644cf"},"description":null,"author":{"id":"7003d37a-bb52-47d8-b01c-d98950560bea","name":"Nick Coughlin","username":"ncoughlin","avatar_url":"https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3167700?v=4","personal_workspace_id":"c49df6d7-34f5-4a2b-8f19-623ba3cf8704","subscription_plan":null,"subscription_since":null}};