-
Notifications
You must be signed in to change notification settings - Fork 4
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
Ogc 1493 react mode #1229
Ogc 1493 react mode #1229
Conversation
The minified .js are for production
I would have updated it to the newest version too, but I couldn't figure out how to get the react.js files for the newer versions. But now react is at least not in the developer-mode anymore. |
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.
I guess this is OK, but I really don't know to be honest...
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
... and 4 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
create-react-class is a wrapper for the legacy React.createClass API. Using create-react-class, we can continue to use the deprecated way of creating React components - otherwise, we have to upgrade each component manually, a time and error-prone process. For now, we can use latest React without changing our components. However, we should update a component whenever we work on it to the latest format.
react-transition-group was moved away from React into a community-maintained project.
Calling foundation() on a React-rendered element caused all handlers to quit working (i.e., onChange did never receive a callback). Wrapping the reveal element in a dedicated element and keeping the react-rendered part separate seems to work.
Conflicts: src/onegov/swissvotes/assets/js/react-dom.min.js tests/onegov/form/assets/react-dom.min.js tests/onegov/form/conftest.py
Please fill in the commit message below and work through the checklist. You can delete parts that are not needed, e.g. the optional description, the link to a ticket or irrelevant options of the checklist.
Commit message
Core: Change react-mode to production, not developer
TYPE: Bugfix
LINK: OGC-1493