Commit Graph
10 Commits
Author SHA1 Message Date
Muhannad Alrusayni dded91a589 doc: put docs in once place instead of two 2022-06-04 13:40:50 +03:00
Muhannad Alrusayni af8cd51258 test: Add test for generic components 2022-06-04 13:40:50 +03:00
Muhannad Alrusayni 252f9343b8 fix: Support Div () as component
previously I from some reason I thought this not allowed syntax. Some test
failed because of my misunderstood, so now I fix this :D
2022-06-04 13:40:50 +03:00
Muhannad Alrusayni 03a14f4a86 fix: element start with lowercase letter again :D 2022-06-04 13:40:50 +03:00
Muhannad Alrusayni 062f986841 refactor: Remove unused types from scope 2022-06-04 13:40:50 +03:00
Muhannad Alrusayni 37f7fe2ac6 fix: Element must be of lowercase letters only 2022-06-04 13:40:50 +03:00
Muhannad Alrusayni 690efade88 fix: Support Input::<..> style to for generic components
before that, we accepted this style `Input<..>` but to be consistent
with Rust syntax this is dropped now.

> For reference, the two ways of specifying explicit type parameters in
> Rust are:
> // for functions
> let _ = foo::<MyType>();
>
> // for structs
> let _ = Foo::<MyType> { ... };
>
> by @jkelleyrtp
2022-06-04 13:40:50 +03:00
Muhannad Alrusayni 5b079075d7 refactor: clean up commented code. 2022-06-04 13:40:50 +03:00
Muhannad Alrusayni 0b5b7f09db feat: Support generic component with inline_props with some limitation 2022-06-04 13:40:50 +03:00
Muhannad Alrusayni a55b56b403 feat: Support generic components in rsx!() macro 2022-06-04 13:40:50 +03:00