JSPM

react-template-loader

1.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q42958F
  • License ISC

react-template-loader

Package Exports

  • react-template-loader

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-template-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-template-loader

Installation

Install the webpack loader from [npm](https://www.npmjs.com/package/react-template-loader).
- `npm install --save-dev react-template-loader`

add the code in webpack.config.js
```webpack.config.js
loaders: ['react-template-loader']
```

What does it use

The `react-template-loader` can transform string to jsx & can read template file and transform file to jsx

Use method

You can use three method in your code
1, template: `<div></div>`
2, templateUrl: `./src/app/page.html`
3, `<div></div>`

templateUrl

This path is relative to where you run `webpack`