facebook / facebook/flow

JSX embedded tags

Open
#7,546 0 comments 0 reactions 0 assignees View on GitHub
feature request react
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

jsx spec and babel have this as per
https://github.com/facebook/jsx/issues/53
https://github.com/babel/babel/pull/6006

Flow version: 0.94.0

## Expected behavior

No errors

## Actual behavior

```
4: attr1=

foo bar />

^ JSX value should be either an expression or a quoted JSX text
4: attr1=
foo bar />

^ Unexpected token <
4: attr1=
foo bar />

^ JSX value should be either an expression or a quoted JSX text
4: attr1=
foo bar />

^ Unexpected token <
4: attr1=
foo bar />

^ Expected corresponding JSX closing tag for Foo
6: /> ^ Unexpected token >
7: ^ Unexpected end of input
```

* Link to Try-Flow or Github repo:

https://flow.org/try/#0JYWwDg9gTgLgBAKjgQwM5wEoFNkGN4BmUEIcARFDvmQNwBQduEAdqvACZwC8cAPO8ABucOnDHiJY5DBhQAjF35CAfHAIQIfAGIa4AI2QAvRXuUGovAPSm4l5VYGDloya+myATIse3nryXZ0QA

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.