New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

reacton-loader

Package Overview
Dependencies
Maintainers
0
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reacton-loader

Loader for single-file Reacton components in Webpack

latest
npmnpm
Version
3.0.0
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

reacton-loader

reacton

Loader for single-file Reacton components in Webpack

Install

npm i reacton-loader -D

webpack.config.js

module: {
  rules: [
    {
      test: /\.html?$/,
      loader: 'reacton-loader'
    }
    ... // other rules
  ]
},

example Component.htm

<h2>{{ title }}</h2>
<p>{{ message }}</p>

<script>
  import { httpRequest } from '../helpers'

  exports = class WHome {
    static mode = 'open'

    static async startConnect() {
      const home = await httpRequest('/db?page=home')
      
      this.title = home.title
      this.message = home.message
    }
  }
</script>

Keywords

framework

FAQs

Package last updated on 29 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts