Provides React configuration for the webpack module.
Dependencies
Installation
yarn add react react-dom @babel/preset-react
Example usage
module.libraries.yml
test:
webpack: true
js:
index.js: {}
index.js
import React from "react";
import ReactDOM from "react-dom";
class Greeting extends React.Component {
render() {
return (
<div>
{this.props.text}
</div>
);
}
}
ReactDOM.render(<Greeting text="Hi!" />, document.getElementById('page'));
Supporting organizations:
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.Maintenance fixes only
Considered feature-complete by its maintainers.39 sites report using this module
- Created by blazey on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
3.0.0
released 23 January 2024
Works with Drupal: ^9 || ^10
Install:
Development version: 3.x-dev updated 23 Jan 2024 at 15:02 UTC
8.x-1.0-alpha3
released 11 November 2020
Works with Drupal: ^8 || ^9
Install:
Development version: 8.x-1.x-dev updated 11 Nov 2020 at 23:56 UTC




