Use React components inside Angular
Перейти к файлу
Ben Grynhaus cbd1f82f45
Merge pull request #19 from Microsoft/typo-fix
Fix 'toggled'->'toggle' @Input typo in base-button
2018-10-02 13:23:15 +03:00
.circleci Attempt to fix CircleCI GitHub pages auto-deploy 2018-08-28 21:59:33 +03:00
.vscode Upgrade office-ui-fabric-react to 6.73.0 2018-09-26 13:29:47 +03:00
apps Demo app changes 2018-08-20 00:04:05 +03:00
docs
libs Fix 'toggled'->'toggle' @Input typo in base-button 2018-10-02 13:20:51 +03:00
tools
.editorconfig
.gitignore
.prettierrc
CHANGELOG.md 0.4.3 (#17) 2018-09-27 13:38:34 +03:00
CODE_OF_CONDUCT.md Update to docs. 2018-08-16 11:23:31 -07:00
CONTRIBUTING.md Update to docs. 2018-08-16 11:23:31 -07:00
LICENSE Update to docs. 2018-08-16 11:23:31 -07:00
README.md Update to docs. 2018-08-16 11:23:31 -07:00
angular.json
nx.json Update to license/copyright on each lib file. Lint fixes. 2018-08-16 12:17:03 -07:00
package-lock.json Upgrade office-ui-fabric-react to 6.73.0 2018-09-26 13:29:47 +03:00
package.json Upgrade office-ui-fabric-react to 6.73.0 2018-09-26 13:29:47 +03:00
tsconfig.json
tsconfig.packages.json
tslint.json

README.md

React support for Angular

npm version

Industry trends, organizational pressures, and other factors can lead to mandates regarding the use of component libraries or migration from one technology to another. In the case of Office UI Fabric, where its use is required, the client must be written in React (there is no Angular component library for the latest version). Rewrite from Angular to React may be cost-prohibitive or ill advised for other reasons.

Use of Angular-React allows consuming any React elements, but specifically Office UI Fabric, within an Angular [2+] application. The library of wrappers for Office UI Fabric simplifies the use of these components with Angular. However, any React code can make use of the custom Angular-React renderer.

@angular-react/fabric | Documentation, quick start, and guides | Demo | Contributing | StackBlitz Template | Office UI Fabric

Typical Use Cases

  • Use React component libraries with Angular
  • Incrementally rewrite an Angular application into React (moving from atomic/leaf nodes upward into full features/pages until the entire app is re-written)

Libraries

  • core: Includes the Renderer and supporting logic to render Angular components with React implementations as React components.
  • fabric: The light-weight Angular component wrappers that expose the Fabric React component api through common Angular components (including both imperative AND declrative syntax in many cases).

Roadmap

Initial work to prove the feasibility of adapting the Angular Renderer to output React managed components has concluded. We have moved beyond the initial simple Fabric components and expanded coverage to much of the available Office UI Fabric component library.

In the coming months we will continue to refine the component implementations as we use the angular-react core and fabric libraries in 2 real-world consumer facing production applications.

Getting started

See our Getting Started Guide if you're building your first project with Angular-React.

If you'd like to contribute, you must follow our contributing guidelines. You can look through the issues (which should be up-to-date on who is working on which features and which pieces are blocked) and make a comment.