teleport-code-generators icon indicating copy to clipboard operation
teleport-code-generators copied to clipboard

Using the code generators in the repl

Open alexnm opened this issue 5 years ago • 0 comments

A few proposals based on how the repl is using the component generators:

  1. The repl should create an instance for each configuration of code generator (5 for react, 1 for vue) and just select that configuration when the input or selectors have changed.

  2. The repl should be able to receive a technology prop that allows it to be configured to output only in that specific technology (without showing the other options)

  3. We should support a default selection in case we want to show the vue generated code by default, but still allow switching at runtime.

  4. This is a bit of a long shot, but maybe the repl can be a lightweight implementation that can dynamically load the component generators at run time, or receive them as props, without having to depend on them directly.

alexnm avatar Jul 03 '19 07:07 alexnm