bezkoder / react-redux-axios-crud

React Redux CRUD App example with Axios to consume Rest API - React Router & Bootstrap.
67 stars 46 forks source link

Class Component to Function component #3

Open centralcybersecurity opened 1 year ago

centralcybersecurity commented 1 year ago

Hi, thank you for the great code, its great for learning react-redux. I am facing some issues in converting the Tutorial.js from class component to a functional component and also adding a filter to the data. Do you have some time to show how to convert and add filter?

Thanks again

bezkoder commented 1 year ago

Hi,

You can read following tutorial (with Github also):

https://www.bezkoder.com/redux-toolkit-crud-react-hooks/

Best Regards, BezKoder.

On Sun, Nov 13, 2022, 21:15 laravelCoder @.***> wrote:

Hi, thank you for the great code, its great for learning react-redux. I am facing some issues in converting the Tutorial.js from class component to a functional component and also adding a filter to the data. Do you have some time to show how to convert and add filter?

Thanks again

— Reply to this email directly, view it on GitHub https://github.com/bezkoder/react-redux-axios-crud/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMUKWZXYI6HLOAIK7NMDKNTWIDZWXANCNFSM6AAAAAAR7BSS6I . You are receiving this because you are subscribed to this thread.Message ID: @.***>

centralcybersecurity commented 1 year ago

Thank you, Bezkoder. Do you have any tutorial for filtering by category_id and pagination?

Also, I am seeing soo many variations: react-redux, redux-toolkit and react-hooks. As a beginner, what would you advise me to focus on out of these 3 options? I'm getting confused.

Just to give context: I want a cleaner and more structured code, not looking for an easy way out.

Thanks for your efforts.