Skip to content

Conversation

@stasm
Copy link
Contributor

@stasm stasm commented Apr 6, 2020

The old examples showecased a number of different approaches to integrating @fluent/react into React apps. Each example was also focused on just one aspect of the integration. For instance, there was a separate example for simple translations, a different one for localizing elements with attributes, another for localizing markup via overlays, yet another for using the withLocalization HOC, etc.

This approach meant that it was a lot of work to keep examples up to date with changes to React and @fluent/react.

In this PR, I removed all old examples and replaced them with a single React app which uses most of @fluent/react's features. It doesn't demonstrate all possible integrations, but I hope it's good enough to be useful, and small enough in scope to be maintained.

Fixes #424.

@stasm
Copy link
Contributor Author

stasm commented Apr 6, 2020

@Gregoor As someone who has built a large app using @fluent/react, do you think this example can be useful to its consumers?

Copy link
Contributor

@Gregoor Gregoor left a comment

Choose a reason for hiding this comment

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

Love it! I think it does exactly what you set out to do and would've made me productive with Fluent even faster.

@stasm stasm merged commit d768f7c into projectfluent:master Apr 6, 2020
@stasm stasm deleted the react-example branch April 6, 2020 17:25
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.

@fluent/react examples are outdated

2 participants