Skip to content

asidelnik/react-typescript-generics

Repository files navigation

React Typescript website

Generic routing, tables & forms. Custom Hooks.

Links

Dev tasks to add a page:

  1. Add an interface with the page's fields (like IDatabase.ts)
  2. IUnion.ts - add the interface to the IDataUnion interface
  3. pagesMetaData.ts - add a page object to the pagesMetaData array
  4. db.json - add a new property with array of data objects
image

Possible improvements:

  • - 1. SSR - implement in project (with json-server?)
  • - 2. TanStack - implement in project
    • - 2.1. Query
    • - 2.2. Router
    • - 2.3. Table
    • - 2.4. Pagination, filtering, & sorting
    • - 2.5. Form