Skip to content

jo-asakura/react-with-nodeject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React JS with nodeject dependency injection manager usage

An example of how you can use React JS framework with nodeject dependency injection manager to build applications.

This is the default approach that I implemented back in Summer 2014 for all the redditgifts React applications.

The advantages of this approach are:

  • Cleaner and more readable code;
  • Easily share React JS components between your React applications;
  • Include different npm modules into your React application;
  • One js file per application: compiled, bundled and minified;
  • Unit tests are much easier with dependency injection.

There are two demo applications:

In order to get compiled js files run grunt command form a command line.

Remember, it's just an example. Feel free to modify and expand it based on your project's needs.

Author

Alexandr Marinenko

Copyright and license

MIT

About

React JS with nodeject dependency injection manager example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published