question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[NG] Change from class based component to fuction based component

See original GitHub issue

Current Behavior The members page and the blog page are using Class based Components,

Desired Behavior Change them to function based components using react hooks for state management.


[Optional] Alternatives

[Optional] Additional context


Contributor Resources The layer5 repo contains two websites. The current generation and the next-generation of the layer5.io site.

If the layer5-ng label is absent on this issue, then this issue pertains to the current generation of the layer5.io website, which uses Jekyll and GitHub Pages. Site content is found under the master branch.

If the layer5-ng label is present on this issue, then this issue pertains to the next-generation of the layer5.io website, which uses Gatsby, Strapi, and GitHub Pages. Site content is found under the layer5-ng branch.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
codetheoremcommented, Oct 19, 2020

@k-charette you can submit a PR.

1reaction
kishore007kcommented, Oct 18, 2020

Assign this to me.

Go ahead @codetheorem

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Convert React Class Components to Functional ...
In this tutorial, we'll look at five ways to convert React Class Components to Functional Components using React Hooks.
Read more >
How to convert a React Class Component to a Function ...
Quick steps to convert to a function component · 1. Change the class to a function · 2. Remove the render method ·...
Read more >
Migrate a React Class Component to a Function ... - Egghead.io
In this lesson we convert the class-based CurrencyCodePicker component to a function component. To do so we employ the following strategy:.
Read more >
How to convert Class Component into Functional ... - Medium
The easiest way of doing it is to simply convert that class component into the functional component. In this article, I will show...
Read more >
Transitioning from React class components to function ...
And just like class components, we can access the properties. They are provided as the first argument of the function.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found