Skip to content

string to jsx, file to jsx, template: string to jsx

Notifications You must be signed in to change notification settings

wisdomofgod/string-jsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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`

About

string to jsx, file to jsx, template: string to jsx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published