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

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • chart icon42 sites report using this module
  • Created by blazey on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    Look for the shield icon below.

Releases