3

What benefits to use componentjs (https://github.com/component/component) instead of requirejs?

Both project has the same idea, hard to make choice between them.

1
  • 1
    I wouldn't generally consider those two project to be competitors, as they operate at a different level of abstraction. The table at the bottom of this article may be helpful: dailyjs.com/2013/01/28/components Commented Sep 11, 2013 at 21:06

1 Answer 1

4

RequireJS is just a JavaScript file and module loader.

Component is a whole system which allows you to package HTML+JS+CSS+Images+Fonts in a one module, component. Component also provides package registry(vs npm), dependency handling(vs requirejs), build and task system(vs grunt/gulp).

There's good document where component is compared to other build/package handling tools: https://github.com/component/guide/blob/master/component/vs.md

This blog post helped me to understand component: http://blog.benmcmahen.com/post/55280740882/using-component-js

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.