Code Monkey home page Code Monkey logo

react-showroom's Issues

Intellisense

Provide intellisense in the examples. It should be technically possible, as it is available in playroom.

  • Basic support: only our components
  • Advanced support: support for imported libraries as well

Screenshot first example as SEO image

Possible approaches

  • use puppeteer - this would probably implemented as an optional feature (as forcing user to install puppeteer with this package is a no-go), user need to install puppeteer for this and turn it on.
  • use html2canvas. However this requires user to manually run it and save the image as part of the repositories. We probably need to render a dev only panel that allows us to run this in dev server. This may be a good approach, combining with File System Access API.

RFC: Interactions

Inspired by the upcoming StorybookJS Interaction Testing, I am thinking of introducing something similar to React Showroom.

Goals

  • Allow docs viewer to see a sequence of interactions in browser directly

Must-have

  • use testing-library as the programmatic way to run simulations.

Nice-to-have

  1. Allowing reusing code for the interaction demo and tests, following our philosophy of reusing existing dev workflow instead of reinvent one.
  2. Undo/redo the interaction steps
  3. Ability to run the interaction step-by-step

Challenges

  • Because we're using markdown instead of javascript, it is probably challenging to achieve nice-to-have 1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.