1.0.0-alpha-2 • Published 4 years ago
babel-plugin-snake-render-engine v1.0.0-alpha-2
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.
1.0.0-alpha-2
4 years ago
1.0.0-alpha-1
4 years ago