Skip to content

Add a React example in TypeScript #2002

Closed
@matronator

Description

@matronator

Subject of the issue

I'm trying to implement gridstack into my React TypeScript web app and I'm going from the React example. It would be really helpful to have an example written in TypeScript as well, as the types are not always easily deducible and I'm struggling to make everything the correct type to finally successfully compile the app.

Your environment

  • gridstack v5.1.1 and I'm using the HTML5
  • Safari 15.3 / macOS 11.6.2

Steps to reproduce

  1. Copy the React example into a TypeScript project.2.
  2. Try to compile

Expected behavior

Have an example using React with TypeScript to showcase the correct types and stuff.

Actual behavior

Currently only React example with pure JS (without TypeScript and types).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions