Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@HenriBeck
Copy link
Member

As hooks are now in a stable release, I added a small util function for getting the theme inside functional components.

@HenriBeck HenriBeck requested review from TrySound and kof February 6, 2019 09:25
Henri Beck added 2 commits February 6, 2019 10:25
* master:
  Update changelog
  Fix tests
  Fix flow
  Improve bundle size
@kof
Copy link
Member

kof commented Feb 10, 2019

Missing the docs

README.md Outdated

The `withTheme` HOC supports the new React forwardRef API so you can just use the normal ref prop.

### Use theme (Hook)
Copy link
Member

Choose a reason for hiding this comment

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

just call it useTheme so that it matches the hash in TOC

@HenriBeck
Copy link
Member Author

Alright, updated the docs

Henri Beck added 2 commits February 10, 2019 20:39
…s-support

* origin/add-hooks-support:
  Update README.md
Copy link
Member

@kof kof left a comment

Choose a reason for hiding this comment

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

don't forget the title, otherwise it looks fine

@HenriBeck HenriBeck merged commit 8e9b706 into master Feb 11, 2019
@HenriBeck HenriBeck deleted the add-hooks-support branch February 11, 2019 15:21
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 this pull request may close these issues.

3 participants