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

Article about Feliz and Fable React #350

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

isaacabraham
Copy link
Member

@MangelMaxime can you have a quick look through this article just to make sure it's broadly correct?

Thanks

Copy link
Contributor

@MangelMaxime MangelMaxime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The content is globally correct I would just avoid using invalid code snippets because this can be confusing to the users.

Regarding Feliz syntax, I believe most people/documentation use the prefixed DSL Html.div instead of div. So I am not sure we should use the non-prefixed version.

Or if we should use the prefixed version and then add a note about the non-prefixed version and how to activate it.

I also believe that the non prefixed version is not allows possible to user with binding library like Feliz.Bulma because it use a mix of static member and modules.

Lastly, it could perhaps be interesting to linked My journey with Feliz | A comparison between Fable.React and Feliz which goes much more in details and contains feedbacks/remarks from the community.

docs/faq/faq-felizandfable.md Outdated Show resolved Hide resolved
Comment on lines 32 to 41
```fsharp
h1 [
style "color:Tomato"
children [
p [ text "Hello" ]
p [ text "Another paragraph" ]
h2 [ style "color:Blue" ]
]
]
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

h1 [
    className "primary"
    children [
        p [ text "Hello" ]
        p [ text "Another paragraph" ]
        h2 [ className "primary" ]
    ]
]

Code is valid if users use

open type Feliz.Html
open type Feliz.prop

@isaacabraham
Copy link
Member Author

@MangelMaxime could you re-review this to see if it's now ready to go in?

docs/faq/faq-felizandfable.md Outdated Show resolved Hide resolved
docs/faq/faq-felizandfable.md Outdated Show resolved Hide resolved
docs/faq/faq-felizandfable.md Outdated Show resolved Hide resolved
@MangelMaxime
Copy link
Contributor

@isaacabraham I added a few more comments.

The first one is the problematic one the others two are more related to details that you can decide to follow or not.

Copy link
Member

@mattgallagher92 mattgallagher92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the whole pretty good. I agree with the comments Maxime made.

docs/faq/faq-felizandfable.md Outdated Show resolved Hide resolved
@mattgallagher92
Copy link
Member

@isaacabraham ping

@isaacabraham
Copy link
Member Author

I'll fix this tomorrow

@Larocceau
Copy link
Contributor

@mattgallagher92 I addressed the last few open issues. Ok to merge?

Copy link
Member

@mattgallagher92 mattgallagher92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Larocceau yep, though I'd just make one slight wording change 🙂

@@ -68,6 +64,7 @@ Html.h1 [ // this is now fine
## Guidance
* Fable.React was created initially, whilst Feliz was developed some time later.
* Feliz has better support for React interop and the majority of the community nowadays uses the Feliz DSL style for developing components.
* As they are both wrappers around the same underlying technology (React) and Feliz uses some parts of Fable.React, you can actually mix and match the two in your applications as required.
* Fable.React and Feliz can be mixed into your application if required (for progressive migration for example)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Fable.React and Feliz can be mixed into your application if required (for progressive migration for example)
* Fable.React and Feliz can be mixed together in your application if required (for progressive migration for example)

"Mixed into" doesn't necessarily imply mixed together, so I'd make this clearer.

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.

4 participants