Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
component.js
index.html
readme.md
script.js

readme.md

JQuery to React

Demo

This example demonstrates a React component modifying an existing JQuery web application by using the $(this) context. The component is passed a reference to JQuery in its constructor.

ReactDOM.render(React.createElement(MyComponent, { context: $('body') }), document.getElementById('root'));
});