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

Rename {% component %} Template Tag to Avoid Generic Naming #25

Open
davecoates opened this issue May 27, 2024 · 0 comments
Open

Rename {% component %} Template Tag to Avoid Generic Naming #25

davecoates opened this issue May 27, 2024 · 0 comments

Comments

@davecoates
Copy link
Contributor

The current template tag {% component "ComponentName" %} used for rendering React components is too generic. The term "component" is broadly used in many contexts, leading to potential confusion. For example, the library django-components uses a tag called component. I think the idea presented in that library is useful and while we may not necessarily use it specifically I can see us adopting something like it for encapsulating re-usable django template based components (that may themselves use a React component).

To make it clear that this tag is specifically for React components, I propose renaming it to {% react_component %} or similar.

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

No branches or pull requests

1 participant