Skip to content

[HtmlToJsx] View logic? F.e., how do we loop through items in an HTML view? #137

@trusktr

Description

@trusktr

The example at http://magic.reactjs.net/htmltojsx.htm is very simple, it just converts static HTML to static JSX.

But that's not very useful on it's own.

How would one write HTML that can loop through a set of items, for example? I'm talking about things like ng-repeat in Angular, or v-for in Vue.

Is there some way to do this? This would be super helpful, because it means a design team could be responsible for owning HTML/CSS, and developers can update the same components with view logic. And HTML/CSS widget library would ship with compiled (or with compilable) templates that are easily usable in React, without React developers having to go and manually copy/pasting HTML/CSS in a way that doesn't scale.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions