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

refactor: add renderData utility to template package #4780

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Conversation

TrySound
Copy link
Member

renderData is similar to renderTemplate but returns maps of data which is used by most of builder utilities and component generator.

Here migrated to it css and component generator and used it to generate data sources where possible.

renderData is similar to renderTemplate but returns maps of data
which is used by most of builder utilities and component generator.

Here migrated to it css and component generator and used it to generate
data sources where possible.
@TrySound TrySound requested review from kof and istarkov January 23, 2025 06:35
@kof
Copy link
Member

kof commented Jan 23, 2025

I was confused about the name at first because data is output, render takes stilll jsx, maybe jsxToData would be a better name?

@TrySound
Copy link
Member Author

render is the key here IMO

@TrySound TrySound merged commit 6d2c297 into main Jan 23, 2025
15 checks passed
@TrySound TrySound deleted the render-data branch January 23, 2025 13:18
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