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

Add components with props, htmlx (v1.2) #3

Open
OleksiyRudenko opened this issue Feb 14, 2021 · 3 comments
Open

Add components with props, htmlx (v1.2) #3

OleksiyRudenko opened this issue Feb 14, 2021 · 3 comments
Assignees

Comments

@OleksiyRudenko
Copy link
Member

OleksiyRudenko commented Feb 14, 2021

Pre-requisites:

  • Template literals & tagged letrals: write your own template parser:
    • simple interpolation
    • every param transformed (strings are enclosed in qoutes, numerics are multiplied, objects/arrays stringified, functions => FuncName())
  • Data Structures: write your own DOM tree and HTML renderer
  • RegExp: write your own HTML parser (HTML string => tree)

Task:

  • Function calls => HTMLX
  • Each function => component with props
@OleksiyRudenko OleksiyRudenko changed the title Add components with props (v1.2) Add components with props, JSX (v1.2) Feb 14, 2021
@OleksiyRudenko OleksiyRudenko changed the title Add components with props, JSX (v1.2) Add components with props, htmlx (v1.2) Feb 14, 2021
@OleksiyRudenko OleksiyRudenko self-assigned this Feb 18, 2021
@OleksiyRudenko
Copy link
Member Author

  • have source code structured (fw, components, utils, data store)
  • have parametrized components

@OleksiyRudenko
Copy link
Member Author

Как работает JS: абстрактные синтаксические деревья, парсинг и его оптимизация
https://habr.com/ru/company/ruvds/blog/415269/

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 a pull request may close this issue.

1 participant