-
Errors inside components do not reach `window.onerror` event handler while using the Mithril router, mounting components with `m.route`. Instead they do when the component is mounted with `m.mount`.
…
-
TypeScript has [slow-walked for years](https://github.com/microsoft/TypeScript/issues/21699) requests to add support for JSX components that 1. are functions (not classes) and 2. return anything other…
-
Hey folks,
I've been playing with Mithril for the first time, trying to set up a basic project. I'm coming from React and TSX so trying to keep things as familiar as possible as I get started but I'm…
-
If we could get some help cleaning that up, it'd be wonderful. All volunteers are welcome, regardless of experience. [Here's a link to the wiki.](https://github.com/MithrilJS/mithril.js/wiki)
Some …
-
What is the "right" way to add client code tests?
I tried the obvious:
```
require(TEST_HELPER) //
-
In late 6.0 we defined a type structure for [React](https://github.com/storybookjs/storybook/pull/11811) and [Angular](https://github.com/storybookjs/storybook/pull/11825). Apply to the remaining temp…
-
I propose changing the file structure, so this type declaration, also supports global usage.
Benefits:
- Only one package to maintain instead of two
- Users do not need to create an extra types…
-
### General changes
- [x] Update to mithril 2.x
- [ ] Add support for alternative icon libraries (i.e material icons)
- [ ] Add dark theme
- [ ] Remove unnecessary sizing (have only 3 sizes: sm, d…
-
In this case:
```typescript
class C1 implements ClassComponent {
foo = 1;
view() {
return m('p', 'foo = ' + this.foo);
}
}
class C2 implements ClassComponent {
view() {
return m(…
-
Hi,
I've switched from React to Mithril, and MSX has been really great. With JSX, you can invoke {this.props.children} to render child components that can be between an opening and closing tag.
```…