Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix example for real-life usage for lesson 2 #56

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

Merged
kentcdodds merged 1 commit into epicweb-dev:main from sophiabrandt:replace-tooltip-with-tabs-for-lesson-02
Dec 12, 2020
Merged

Fix example for real-life usage for lesson 2 #56

kentcdodds merged 1 commit into epicweb-dev:main from sophiabrandt:replace-tooltip-with-tabs-for-lesson-02
Dec 12, 2020

Conversation

@sophiabrandt
Copy link
Contributor

@sophiabrandt sophiabrandt commented Dec 12, 2020

I could not find examples of the pattern (React.Children.map and React.cloneElement) in @reach/tooltip. This was very confusing during the exercise.

In comparison, @reach/tabs uses that pattern in its source code.

I could not find examples of the pattern (`React.Children.map` and `React.cloneElement`) in `@reach/tooltip`. This was very confusing during the exercise.
In comparison, `@reach/tabs` uses that pattern in [their sources code](https://github.com/reach/reach-ui/blob/97b32791ce33f822f6bc9f07f6cebfb343d8032d/packages/tabs/src/index.tsx#L383).
Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for investigating and fixing this!

sophiabrandt reacted with thumbs up emoji
@kentcdodds kentcdodds merged commit 1540c16 into epicweb-dev:main Dec 12, 2020
Copy link
Member

@all-contributors please add @sophiabrandt for docs

Copy link
Contributor

@kentcdodds

I've put up a pull request to add @sophiabrandt! 🎉

@sophiabrandt sophiabrandt deleted the replace-tooltip-with-tabs-for-lesson-02 branch December 12, 2020 14:59
payapula pushed a commit to payapula/advanced-react-patterns that referenced this pull request May 22, 2022
I could not find examples of the pattern (`React.Children.map` and `React.cloneElement`) in `@reach/tooltip`. This was very confusing during the exercise.
In comparison, `@reach/tabs` uses that pattern in [their sources code](https://github.com/reach/reach-ui/blob/97b32791ce33f822f6bc9f07f6cebfb343d8032d/packages/tabs/src/index.tsx#L383).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@kentcdodds kentcdodds kentcdodds approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /