Skip to content

Support React 16 Fragments #23

@dantman

Description

@dantman

When using val+React 16 and the new fragments I get an error.

/** @jsx h */
import h from '../../app/react';
import React, {PureComponent} from 'react';

export default class MyComponent extends PureComponent {
	render() {
		return (
			<React.Fragment>
				...
			</React.Fragment>
		);
	}
}
Warning: Invalid prop `dangerouslySetInnerHTML` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.
    in React.Fragment (created by MyComponent)
    in MyComponent

When I remove the @jsx and h created by @skatejs/val it starts working again.

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