Dmitry Iv.

Results 308 issues of Dmitry Iv.

Suppose use-case for conditional applying classes: ```js import { render } from "preact"; import { html } from "htm/preact"; let el = document.createElement("div"); render( html` `, el ); console.log(el.innerHTML); //...

proposal

Not the same as #109. That would be useful to have insertable attribute names: ```js html`` // same as html`` ``` ## Practical cases Optional attributes: ```js html`` ``` Private...

discussion
proposal

> Smallest possible implementation: only 120 bytes. There's possibly smaller version: ```js export dlv = (obj, key) => (key.split ? key.split('.') : key).reduce((a,b)=>b?a?.[b]:a,obj) ```

This check is handled by more generic following condition.

There are use-cases when it is not necessary to create an `element` for a component, for example, when we render WebGL/[regl](https://github.com/regl-project/regl) or canvas2d layers: ```jsx ``` Would that be reasonable...

There's a use-case for custom elements, that allows extending built-in components https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#Customized_built-in_elements. That allows to solve inherent problems of JSX, as stated in the preact issue https://github.com/developit/htm/issues/81 If remount would...

We transitioned fully to evergreen-ui in our project, replacing material-ui and blueprint, and use it pretty heavily now. Just want to share some practical difficulties we've faced. 1. [ ]...

improvement

```sh PS C:\Windows\system32> npm i --global --production windows-build-tools > [email protected] postinstall C:\Users\dmitry\AppData\Roaming\npm\node_modules\windows-build-tools > node ./dist/index.js Downloading vs_BuildTools.exe [> ] 0.0% (0 B/s) Downloaded vs_BuildTools.exe. Saved to C:\Users\dmitry\.windows-build-tools\vs_BuildTools.exe. Starting installation... Launched...

Sometimes we deal with clearing just a part of canvas, as in [parcoords example](https://github.com/plotly/plotly.js/blob/master/src/traces/parcoords/lines.js#L39-L44). ```js var gl = regl._gl; gl.enable(gl.SCISSOR_TEST); gl.scissor(x, y, width, height); regl.clear({color: [0, 0, 0, 0], depth:...

enhancement

1. `scissor` does not recognize a function `ctx => { return {enable: true, box}}`, that makes it incapable to change dynamically. 2. `scissor` requires `{enable, {x,y,width,height}}` signature, `viewport` requires `{x,y,width,height}`...

enhancement