Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSX embedded tags #7546

Open
goodmind opened this issue Mar 9, 2019 · 0 comments
Open

JSX embedded tags #7546

goodmind opened this issue Mar 9, 2019 · 0 comments

Comments

@goodmind
Copy link
Contributor

goodmind commented Mar 9, 2019

jsx spec and babel have this as per
facebook/jsx#53
babel/babel#6006

Flow version: 0.94.0

Expected behavior

No errors

Actual behavior

4:             attr1=<div> foo <Foo baz=<b>bar</b> /></div>
                     ^ JSX value should be either an expression or a quoted JSX text
4:             attr1=<div> foo <Foo baz=<b>bar</b> /></div>
                     ^ Unexpected token <
4:             attr1=<div> foo <Foo baz=<b>bar</b> /></div>
                                        ^ JSX value should be either an expression or a quoted JSX text
4:             attr1=<div> foo <Foo baz=<b>bar</b> /></div>
                                        ^ Unexpected token <
4:             attr1=<div> foo <Foo baz=<b>bar</b> /></div>
                                                  ^ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants