Comparing version 4.0.0 to 4.0.1
@@ -1,2 +0,2 @@ | ||
import React, { memo, createElement } from 'react' | ||
import { createElement } from 'react' | ||
@@ -156,5 +156,2 @@ const E = Symbol('exclude') | ||
// forward react exports | ||
export * from 'react' | ||
export const wrapper = options => { | ||
@@ -161,0 +158,0 @@ const { baseClassName, ...opts } = prepareOptions(options) |
{ | ||
"name": "dallas", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "A wrapper for applying classes", | ||
@@ -5,0 +5,0 @@ "type": "module", |
10
test.js
import { deepStrictEqual as test } from 'assert' | ||
import { classeNoMemo, wrapper } from './index.js' | ||
import { classe, wrapper } from './index.js' | ||
@@ -21,3 +21,3 @@ // data | ||
const applyDallas = (options, props) => | ||
classeNoMemo(options, pass)(Object.freeze(props)) | ||
classe(options, pass)(Object.freeze(props)) | ||
@@ -163,8 +163,8 @@ /* APPLY CLASSNAME */ | ||
console.log('it should use keep component name') | ||
test(classeNoMemo({}, pass).displayName, 'pass') | ||
test(classe({}, pass).displayName, 'pass') | ||
console.log('default name should be Div') | ||
test(classeNoMemo({}).displayName, 'Div') | ||
test(classe({}).displayName, 'Div') | ||
console.log('we can specify another name') | ||
test(classeNoMemo({}, pass, 'Hey').displayName, 'Hey') | ||
test(classe({}, pass, 'Hey').displayName, 'Hey') |
14592
295