UNPKG

jsx-if-else

Version:

A very lightweight and small react component that will let you write simple if and else statement with JSX syntax.

11 lines (9 loc) 288 B
import 'babel-polyfill' import React from 'react' import Enzyme, { shallow, render, mount } from 'enzyme' import Adapter from 'enzyme-adapter-react-16' Enzyme.configure({ adapter: new Adapter() }) global.React = React global.shallow = shallow global.render = render global.mount = mount