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

Add support for useTheme hook #84

Merged
merged 16 commits into from
Feb 11, 2019
Merged

Add support for useTheme hook #84

merged 16 commits into from
Feb 11, 2019

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.

Henri Beck added 2 commits February 6, 2019 10:25
* master:
  Update changelog
  Fix tests
  Fix flow
  Improve bundle size
src/create-use-theme.js Show resolved Hide resolved
src/create-use-theme.js Outdated Show resolved Hide resolved
@kof
Copy link
Member

kof commented Feb 10, 2019

Missing the docs

README.md Outdated
@@ -218,6 +219,25 @@ export default App;

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.

None yet

3 participants