-
Notifications
You must be signed in to change notification settings - Fork 250
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
issue/2824-react Added react template support #2963
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also missing changes to lockfile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Magnificent.
Can we hold off merging this until next week's FW meeting - just to give us a chance to talk about when & how to release this? |
While this is on hold... Feature requestHave the view redo its runtime properties/functions (i.e. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, shall we get this merged in and released then?
I'd just like to test that it still works first. Give me an hour or so? |
#2824 #2944
Added react support and handlebars-style react templates.
These plugins achieve react templating and integration in the same way we have been doing with handlebars:
Templates
Supports react 'templates' as near as I could get it to our current handlebars templates - separate, override-able etc. This change does not require a wholesale switch to React views but instead uses our current Backbone views and React as a templating engine. This means that some of the usual functionality of React views, such as the state object, aren't used to cause view re-render, instead the
this.changed()
function should be called to re-render a Backbone View with a React template.Here are a few reasons for using React as a templating engine only:
Usage
A React version of the accordion lives here pr / branch