Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: styleguidist/react-styleguidist
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v13.1.3
Choose a base ref
...
head repository: styleguidist/react-styleguidist
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v13.1.4
Choose a head ref
  • 2 commits
  • 3 files changed
  • 3 contributors

Commits on Oct 30, 2024

  1. docs: Add book link

    sapegin authored Oct 30, 2024
    Configuration menu
    Copy the full SHA
    3ae63b6 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2025

  1. fix: prevent unnecessary wrapping of single line jsx elements (#2183)

    When having a single line statement with an import statement everything works as expected.
    
    ```jsx
        import * as React from "react";
        <ReactComponent />;
    ```
    
    However if you remove the import statement, a semicolon `;` appears in the output. We no longer need the explicit import statements as this can be configured globally, and we have an eslint rule requiring us to close every js statement with a semicolon.
    
    ```jsx
        <ReactComponent />;
    ```
    
    This happens because of the fix/changes done in this issue: #842, which causes every statement starting with JSX to be wrapped in a Fragment. This will cause the semicolon to be added inside the Fragment, and cause it to be rendered.
    
    This change causes the examples to only be wrapped in a Fragment if multiple jsx statements are returned on root level of the example by checking for the error before wrapping.
    
    Co-authored-by: Thomas Roest <[email protected]>
    ThomasRoest and Thomas Roest authored Jan 7, 2025
    Configuration menu
    Copy the full SHA
    c223f9a View commit details
    Browse the repository at this point in the history
Loading