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

Stripping Down Components With React Hooks #60

Open
cianfoley-nearform opened this issue Sep 12, 2019 · 1 comment
Open

Stripping Down Components With React Hooks #60

cianfoley-nearform opened this issue Sep 12, 2019 · 1 comment

Comments

@cianfoley-nearform
Copy link

Hey all, I'd like to give a talk in December on simplifying react components with hooks

I'll talk through the whys and the hows of it.

Essentially moving imperative code into custom hook libraries means that components remain super clean and the nitty gritty can be abstracted out and re-used in your own code, across wider organisation or maybe even open-sourced.

I'll go through the react browser hooks library that was created by NearForm and the reasons why we did it, and show some other practical examples I've come across that just make things a whole lot simpler.

We will:

  • look at browser hooks for implementing things like full screen, location, drag n drop and others in a friendly cross browser way, showing use of useState, useEffect, useRef
  • go through some cool practical things around using canvas and routing in a live application
  • demonstrate the practicality of useContext
  • maybe show a more complex example on some madder stuff around a declarative keyboard and requestAnimationFrame (which I used to learn a bit more about hooks initially)

30-45 mins?

@Codesleuth
Copy link
Member

Awesome! Proposing for December 10th 👌
Let's discuss travel or remote and we can lock it in ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants