Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial port of React #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Initial port of React #40

wants to merge 1 commit into from

Conversation

mvattuone
Copy link
Contributor

This PR introduces React and deprecates Backbone since we weren't really using models anyway.

This also introduces hot reloading via Webpack which is pretty handy. This will be even more useful once I set up a CSS bundle.

Leaflet and Shepherd rely heavily on the DOM to do what they do which makes it a little tricky incorporating them with React. Probably will be good to look for an alternative for Shepherd, though I don't know exactly how to reconcile the differences between Leaflet and React... there is probably a way.

Definitely needs some cleanup and tests. I'll add some comments explaining some of the more messy bits -- this will be refactored over time but wanted to get it working first.

@matteobanerjee

import React from 'react';
import ReactDOM from 'react-dom';
import L from 'leaflet';
import { Base } from './layouts/Base';

$(document).ready(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably don't need this anymore.

@mvattuone mvattuone force-pushed the feature/install-react branch from 0bff38d to 8867685 Compare September 6, 2016 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant