Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

v4.0.0 - Hooks and new folder structure

Latest
Compare
Choose a tag to compare
@vishwam vishwam released this 14 Feb 00:30
· 6 commits to master since this release
3dae340

Modified

  • Update to [email protected] to get support for Hooks.
  • Update to i18next@14, which contains breaking API contract changes and supports react suspense and hooks
  • Update folder structure to align with team structure and make code contributions easier. Main changes:
    • Move all the bootstrapping code to src/shell.
    • Create src/areas to hold all feature code. src/areas/home/home.tsx is a good place to start.
    • Create src/examples to demonstrate how to use Routing and Fluent Controls.

Migration Guide

If you're migrating from baseline v2/v3:

  • Update your packages to match the new package.json.
  • Pull in shell/, index.tsx, i18n.tsx, and errorBoundary.tsx from src/.
  • Add your global navigation items in shell/navigation.tsx.
  • Add your routes in shell/routes.tsx.
  • react-i18next no longer provides a TranslationFunction or I18n HOC, so get it from src/i18n.tsx instead.