Skip to content

Inconsequent string wrapping #614

Open
@albingroen

Description

@albingroen

Input

  const Element = () => (
    <div>
      <p>
        {`{t('Cool')}`}
      </p>
      <p>
        {`t('Cool')`}
      </p>
    </div>
  )

Expected output

  const Element = () => (
    <div>
      <p>
        {t('Cool')}
      </p>
      <p>
        t('Cool')
      </p>
    </div>
  )

Actual output

  const Element = () => (
    <div>
      <p>
        {`{t('Cool')}`}
      </p>
      <p>
        t('Cool')
      </p>
    </div>
  )

Why is the first p element getting wrapped in {``}, bet second not. I expect the first to act as the second (ie. not get wrapped.)

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