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

[docs] Update the "remove props" example #141

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jan 25, 2023

  1. [docs] Update the "remove props" example

    The remove prop example suffers one issue: nested components
    
    If you have two nested components with the same prop it will be removed to both of them.
    
    For example
    
    ```jsx
    <A prop="test">
      <B prop="test2" />
    </A>
    ```
    
    Using the example to remove `prop` from `<A />` Will also remove it from `<B />` because find also cover the nested elements
    alexfauquette committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    fbb9ae0 View commit details
    Browse the repository at this point in the history