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

[Palette] Migrate palette and React lifecycle function use to React Hooks #289

Open
adrw opened this issue May 13, 2019 · 0 comments

Comments

1 participant
@adrw
Copy link
Member

commented May 13, 2019

Instead of componentDidMount() inside of a React class, migrate Palette Exemplar and any other related code to not use React classes and instead use React hooks like useEffect().

This results in simpler (no more classes, just functions), faster (classes are slower than functions) code.

@adrw adrw added this to Needs triage in 0.2.0 via automation May 13, 2019

@adrw adrw added this to To do in adrw via automation May 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.