question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ijk that returns an opinionated Virtual DOM schema out of the box?

See original GitHub issue

@lukejacksonn If https://github.com/hyperapp/hyperapp/issues/578 lands, would you consider changing ijk so it can be used like this:

const { h } from "ijk"

h(['h1', 'Hello World'])

…without a call to h('name','props','children') to create the actual h function? In other words, have the exported h return an opinionated Virtual DOM schema like { nodeName, attributes, children }.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lukejacksonncommented, Feb 7, 2018

It would be much nicer if we didn’t have to pass a schema so yeh, I would certainly consider it. Another option I thought of is to be able to pass ijk an h to try figure out what schema it should output… something like:

import { app, h } from 'hyperapp'
import { build } from 'ijk'

const View = build(h)(...)

Either that or export different h for each vdom type:

import { h } from 'ijk/hyperapp'
import { h } from 'ijk/preact'

I am up for exploring all of these options!

0reactions
jorgebucarancommented, Mar 3, 2018

@lukejacksonn I think using the framework’s exported VDOM builder function is far more robust than my proposal, but if you are willing to take the “risk”, returning the raw VNode object would make ijk even more fun to use. Whether you implement this feature or not is up to you. You did a great job here!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change internal VNode data structure. · Issue #578 - GitHub
I'd like to discuss the possibility to change our internal VNode data structure name and props fields to nodeName and attributes ...
Read more >
Virtual DOM and Internals - React
The virtual DOM (VDOM) is a programming concept where an ideal, or “virtual”, representation of a UI is kept in memory and synced...
Read more >
Zwn - River Thames Conditions - Environment Agency - GOV.UK
Unlp odontologia la plata, Kky-271i, Container wars season 1 online, ... Grooming definition in spanish, Eventbrite box office, Restaurant klenert ...
Read more >
ReactJS | Virtual DOM - GeeksforGeeks
Virtual DOM: React uses Virtual DOM exists which is like a lightweight copy of the actual DOM(a virtual representation of the DOM). So...
Read more >
LNCS 2814 - Conceptual Modeling for Novel Application Domains
at ER 2003, out of which we selected the following four based on peer reviews: ... Finally, the International Workshop on XML Schema...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found