{"id":18614837,"url":"https://github.com/andrewjbateman/react-tailwind-tables","last_synced_at":"2026-04-13T16:34:33.342Z","repository":{"id":96860931,"uuid":"409564606","full_name":"AndrewJBateman/react-tailwind-tables","owner":"AndrewJBateman","description":":clipboard: A React app using react-tables to display REST API data","archived":false,"fork":false,"pushed_at":"2021-09-26T09:03:18.000Z","size":1114,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-17T01:34:26.900Z","etag":null,"topics":["axios-middleware","craco","purgecss","react","react-table","tailwindcss"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndrewJBateman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-23T11:32:28.000Z","updated_at":"2021-09-26T09:03:20.000Z","dependencies_parsed_at":"2023-03-30T11:36:31.258Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/react-tailwind-tables","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewJBateman/react-tailwind-tables","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Freact-tailwind-tables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Freact-tailwind-tables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Freact-tailwind-tables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Freact-tailwind-tables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/react-tailwind-tables/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Freact-tailwind-tables/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259379066,"owners_count":22848669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axios-middleware","craco","purgecss","react","react-table","tailwindcss"],"created_at":"2024-11-07T03:27:09.966Z","updated_at":"2026-04-13T16:34:28.270Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: React Tailwind Tables\n\n* A React app using react-tables to display REST API data\n* Code from [CoderOne](https://www.youtube.com/channel/UCMm15RFnHUvM-aSc50e7R9A) with modifications to styling\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/react-tailwind-tables?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/react-tailwind-tables?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/react-tailwind-tables?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/react-tailwind-tables?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: React Tailwind Tables](#zap-react-tailwind-tables)\n  * [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General Info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal_strength: Technologies](#signal_strength-technologies)\n  * [:floppy_disk: Setup](#floppy_disk-setup)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:clipboard: Status \u0026 To-Do List](#clipboard-status--to-do-list)\n  * [:clap: Inspiration](#clap-inspiration)\n  * [:file_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General Info\n\n* [Fake Store API](https://fakestoreapi.com/) provides data for e-commerce or shopping website prototypes\n* [React Hooks](https://reactjs.org/docs/hooks-reference.html) used so state etc. can be used without writing a class\n* [React Table useTable](https://react-table.tanstack.com/docs/api/useTable) root hook used\n* Table is not responsive - set up for PC screen size\n* Table Edit buttons do not edit anything, they just create an alert\n* Yarn used instead of npm for this project\n\n## :camera: Screenshots\n\n![Example screenshot](./imgs/react-table.png)\n\n## :signal_strength: Technologies\n\n* [React v17](https://reactjs.org/) Javascript library.\n* [Tailwind v2](https://tailwindcss.com/) utility-first CSS framework\n* [twin.macro v2](https://classic.yarnpkg.com/en/package/twin.macro) to mix Tailwind with css-in-js\n* [@craco/craco v6](https://yarnpkg.com/package/@craco/craco) Create React App Configuration Override, an easy and comprehensible configuration layer for create-react-app. Required because Create React App doesn’t let you override the PostCSS configuration natively\n* [PostCSS v8](https://postcss.org/) tool for transforming CSS with JavaScript\n* [react-table v7](https://yarnpkg.com/package/react-table) Hooks for building lightweight, fast and extendable datagrids for React\n* [axios v0.21.4](https://yarnpkg.com/package/axios) Promise based HTTP client for the browser and node.js\n* [Fake Store API](https://fakestoreapi.com/) for testing of e-commerce or shopping website prototype\n* [Thunderclient](https://www.thunderclient.io/) VSCode extension Rest Client for Testing APIs\n\n## :floppy_disk: Setup\n\n* `yarn start` runs the app in the development mode. Open [http://localhost:3000](http://localhost:3000) to view it in the browser.\n* `yarn build` builds the app for production to the `build` folder. It correctly bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes.\n* `yarn test` to run testing - no tests added, testing fails\n\n## :computer: Code Examples by CoderOne\n\n* function const to define table using spread operator and add edit column\n\n```jsx\n\tconst tableHooks = (hooks) =\u003e {\n\t\thooks.visibleColumns.push((columns) =\u003e [\n\t\t\t...columns,\n\t\t\t{\n\t\t\t\tid: \"Edit\",\n\t\t\t\tHeader: \"Edit\",\n\t\t\t\tCell: ({ row }) =\u003e (\n\t\t\t\t\t\u003cButton onClick={() =\u003e alert(\"Editing: \" + row.values.price)}\u003e\n\t\t\t\t\t\tEdit\n\t\t\t\t\t\u003c/Button\u003e\n\t\t\t\t),\n\t\t\t},\n\t\t]);\n\t};\n```\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working\n* To-Do: Change REST API and try different tw styles. Add testing\n\n## :clap: Inspiration\n* [CoderOne: React Tables From Zero to Hero](https://www.youtube.com/watch?v=WRKEjPq75BY)\n* [Tailwindcss: Install Tailwind CSS with Create React App](https://tailwindcss.com/docs/guides/create-react-app)\n* [React Table Quick Start](https://react-table.tanstack.com/docs/quick-start)\n\n\n## :file_folder: License\n\n* N/A\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: gomezbateman@yahoo.com","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Freact-tailwind-tables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Freact-tailwind-tables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Freact-tailwind-tables/lists"}