Skip to content

Conversation

@mxweaver
Copy link
Contributor

@mxweaver mxweaver commented Jan 9, 2022


name: 📖 New/Updated Documentation Content
about: Adding a new docs page, or updating content in an existing docs page

PR Type

Does this PR add a new page, or update an existing page?

Checklist

What docs page is being added or updated?

For Updating Existing Content

What updates should be made to the page?

The class-based react components should be converted to functional components.

Do these updates change any of the assumptions or target audience? If so, how do they change?

Converting the components to functional components assumes the audience understands the basics of functional react components and hooks. In contrast, the existing examples assume the audience understands the lifecycle methods of class components. Both of these concepts are foundational to modern React development. Still, functions and hooks seem to be the preferred method of defining a component (e.g., the React docs have mainly been rewritten to use functional components: https://reactjs.org/docs/lists-and-keys.html).

@mxweaver mxweaver changed the title Function components in docs Convert class components to functional components in the API docs examples Jan 9, 2022
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jan 9, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 1e822d9:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration

@netlify
Copy link

netlify bot commented Jan 9, 2022

✔️ Deploy Preview for redux-docs ready!

🔨 Explore the source changes: 1e822d9

🔍 Inspect the deploy log: https://app.netlify.com/sites/redux-docs/deploys/61daf7a179da9700071ef33c

😎 Browse the preview: https://deploy-preview-4254--redux-docs.netlify.app

@markerikson
Copy link
Contributor

Sweet, thank you!

Yeah, there's a lot of the docs pages that need to be rewritten to show "modern Redux" and "modern React", but those have been low priority.

If you'd like to try updating some of the other docs pages, that would be wonderful!

@markerikson markerikson merged commit 568377b into reduxjs:master Jan 9, 2022
@mxweaver
Copy link
Contributor Author

mxweaver commented Jan 9, 2022

My pleasure! I'll give it a whirl!

@mxweaver mxweaver deleted the function-components-in-docs branch January 9, 2022 17:55
nevilm-lt pushed a commit to nevilm-lt/redux that referenced this pull request Apr 22, 2022
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.

2 participants