Skip to content

How to make a page to view a single widget? #823

Open
@kulakowka

Description

@kulakowka

Let's say I have a route

<Route path="widget/:id" component={Widget}/>

How to load it from the server? I have to create a separate option in the state?
Or should I add it to the general list of the widgets?

You can add an example of creating CRUD interface?

For example:

  • /widgets Page to show a list of widgets
  • /widgets/:id Page to show a single widget
  • /widgets/new Page to create a new widget
  • /widgets/:id/edit Page to edit a widget

It is very difficult to figure out how to do it. Maybe someone else can share an example of implementation?

It would be nice to see an example of pagination and the various filters to control sorting and so on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions