Skip to content

kentcdodds/react-in-angular

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 

React in Angular

This repo is simply an example of using React in AngularJS. There are three tags. Check them out in order to see the process of moving an Angular app to React. Kinda fun and stuff :-)

Note: In an effort to make the transition from angular to react as smooth as possible, some of the file structure/naming may resemble angular a little more than react (for example MainCtrl).

To use

$ git clone https://github.com/kentcdodds/react-in-angular.git
$ cd react-in-angular
$ git checkout step1
$ npm install
$ webpack-dev-server --content-base app

Go to localhost:8080 and play around a bit. This is a 100% angular app.

$ git checkout step2
$ npm install
$ webpack-dev-server --content-base app

Go to localhost:8080 and play around a bit. This is a 50% angular app, 50% react app.

$ git checkout step3
$ npm install
$ webpack-dev-server --content-base app

Go to localhost:8080 and play around a bit. This is a 100% react app.

About

An example of migrating something from angular to react

Resources

Stars

Watchers

Forks

Packages

No packages published