MortarJS / Mortar-JS

A React-powered framework that provides building blocks to craft and customize powerful data management tools for the web.
MIT License
101 stars 3 forks source link

Upgrade to React 15 #25

Closed walterbm closed 8 years ago

walterbm commented 8 years ago

React 15 has been officially released. Most of the breaking changes do not affect any Mortar components. However we rely on react-router 1.0.1 (specifically the named-routes functionality). In order to complete the upgrade react-router or create our own lightweight router.

SimantovYousoufov commented 8 years ago

Passing in single JSX elements into Form and Row like:

<Br.Form key={this.formKey} formKey={this.formKey} bindResource={this.state.includeRelations}>
    <Br.Row>
    <Br.Column grid="lg" size="12">
        {this.buildRelationsCheckboxes(relations)}
        </Br.Column>
    </Br.Row>
</Br.Form>

Produces these errors: warning.js?8a56:44 Warning: Failed propType: Invalid prop children of type object supplied FormRow, expected array. Check the render method of YourComponent warning.js?8a56:44 Warning: Failed propType: Invalid prop children of type object supplied to Form, expected array. Check the render method of YourComponent

Form and Row should accept the React.PropTypes.object type for children

Kyle-Mendes commented 8 years ago

@SimantovYousoufov This is related to #14

Kyle-Mendes commented 8 years ago

We are now fully supporting React 15.

React Router was also upgraded in the Playground.