How to use ulog - 2 common examples

To help you get started, we’ve selected a few ulog 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 Download / preact-solids / src / list / index.jsx View on Github external
import ulog from 'ulog'
import { h } from 'preact'
import defaultClasses from 'solids/list/classes'
import { createHelper } from '../style-classes'
import { Consumer } from '../theme'

const log = ulog('preact-solids:list')

export const List = (props = {}) => {
	log('List', 'render', props)

	const {
		nonInteractive = false,
		Component = nonInteractive ? 'nav' : 'ul',
		dense = false,
		twoLines = false,
		avatars = false,
		// list items
		children,
		// other attributes
		...attributes
	}	= props
github Download / preact-solids / src / theme / index.jsx View on Github external
import ulog from 'ulog'
import { h } from 'preact'
import { createContext } from '@stijndewitt/preact-context'

const log = ulog('preact-solids:theme')

export const Theme = createContext({}, undefined, { providerOptional: true })
export const Provider = Theme.Provider
export const Consumer = Theme.Consumer

export default { Theme, Provider, Consumer }

log('Initialized')

ulog

The universal logger

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis

Popular ulog functions