How to use the remax/macro.createHostComponent function in remax

To help you get started, we’ve selected a few remax examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github remaxjs / remax / packages / remax-cli / src / __tests__ / fixtures / createHostComponent / src / pages / index.js View on Github external
import * as React from 'react';
import CustomComponent from 'custom-component';
import { createHostComponent } from 'remax/macro';

const FooBar = createHostComponent('foo-bar', ['foo', ['class', 'className']]);

export default () => {
  return (
    <>
      
      
    
  );
};

remax

Remax 是一个全新的基于 React 的小程序开发框架

MIT
Latest version published 3 years ago

Package Health Score

50 / 100
Full package analysis