Skip to content

Weird formatting of props spread for multiline JSX expression #6002

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

Closed
cknitt opened this issue Feb 12, 2023 · 0 comments · Fixed by #6006
Closed

Weird formatting of props spread for multiline JSX expression #6002

cknitt opened this issue Feb 12, 2023 · 0 comments · Fixed by #6006

Comments

@cknitt
Copy link
Member

cknitt commented Feb 12, 2023

For example, in the following case, formatting of the props spread is weird:

let make = props =>
  <button
    {...
    props}
    className="inline-block px-6 py-2.5 bg-blue-600 text-white font-medium text-xs leading-tight uppercase rounded shadow-md hover:bg-blue-700 hover:shadow-lg focus:bg-blue-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out"
  />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant