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

Convert Struct Components to Functional #28

Open
isosphere opened this issue Sep 2, 2023 · 0 comments · May be fixed by #37
Open

Convert Struct Components to Functional #28

isosphere opened this issue Sep 2, 2023 · 0 comments · May be fixed by #37

Comments

@isosphere
Copy link
Owner

We are largely using struct components, and most of our components are very simple.

The Yew project recommends functional components as the default:

function components - the recommended way to write components when starting with Yew and when writing simple presentation logic.

I believe that we should update our codebase to consistently use functional components where possible. Perhaps some components require the advanced control struct components can provide, but I doubt we have any such ones today.

I have updated our README.md to indicate a preference for functional components.

@CraftSpider CraftSpider linked a pull request Nov 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant