Skip to content

Is React 0.13.x supported? #34

Closed
Closed
@AlexeyRaga

Description

@AlexeyRaga

The current version of React is 0.13.3, but when I run the example it doesn't work against React 0.13.3.

The problem is that in 0.12.x React would give a warning (and that's what I see if I run the example against 0.12.2):

Warning: Something is calling a React component directly. Use a factory or JSX instead. 
See: http://fb.me/react-legacyfactory

But in 0.13.x React has removed renderComponent, renderComponentToString and renderComponentToStaticMarkup functions which were deprecated in 0.12.x, but still used by the example.

Instead, the new "correct" way would be:

React.render(React.createFactory(MyComponent)(config), node)

But I don't know how to express it in purescript-react. Is there a way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions