1.0.0-alpha-2 • Published 4 years ago

babel-plugin-snake-render-engine v1.0.0-alpha-2

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Main Coverage Status

babel-plugin-snake-render-engine

Plugin that allows to get rid of the Node() wrapper.

Given:

import SRE from "snake-render-engine";
const SomeNode = (props) => {};
const MyNode = () => {};

const fn = () => {
  const OtherNode = () => {};
};

It produces:

import SRE from "snake-render-engine";
const SomeNode = Node(props => {});
const MyNode = Node(() => {});

const fn = () => {
  const OtherNode = Node(() => {});
};

Also note that for now you should import Node from snake-render-engine. Next iteration will take care of this in the background.