reactjs / reactjs/react.dev

Recommend `connect-backbone-to-react` for integrating Backbone data

Open
#510 8 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
1d 11h
Merged PRs (30d)
11

Description

Hello!

Here, y'all recommend an approach for integrating Backbone models and collections with React and include a code snippet for doing so.

Luckily, this functionality has been achieved using a HoC (like the snippet recommends) in a simple, tested library created by MongoDB called connect-backbone-to-react. We and they (and probably others) have been using the library in production with great success (in our case, for over 6 months).

Recommending connect-backbone-to-react would help devs and projects new to React get up-and-running with React+Backbone quickly and easily. Rather than building their own integration library, they could simply use one that already exists. Also, by centralizing on a solution, the community could collaborate to make the migration from Backbone to React easier and safer for everyone.

connect-backbone-to-react additionally offers a Redux-like provider in BackboneProvider, that many folks may find useful.

Happy to submit a PR to update the docs :). Wanted to check in to get y'all's thoughts first.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Backbone models section in content/docs/integrating-with-other-libraries.md, linked in the issue, and review the existing integration snippet alongside connect-backbone-to-react and its BackboneProvider documentation. Done means updating the React documentation to recommend the library if maintainers approve, while keeping the integration guidance and links accurate.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.