Questions tagged [infernojs]

A lightweight and fast React-like JavaScript library for building modern user interfaces.

Inferno:

  • Uses functional components by default. To use class-based components a separate library is needed.
  • Supports server side rendering using the inferno-server package.
  • Includes it's own routing library and supports both Redux and MobX for state management.
  • Supports React apps by using a compatibility layer (npm inferno-compat) that sits between React and Inferno.

Website

23 questions
0
votes
2 answers

Handling of "ref" and "key" in different virtual-DOM-based UI libraries (React, Inferno, Preact, etc.)

After calling the props object is { x: 'aaa', y: 'bbb' } in React and Inferno, but it is { x: 'aaa', y: 'bbb', key: '0', ref: someRef } in Preact. Does anybody know the reasons for those…
Natasha
  • 516
  • 7
  • 24
0
votes
1 answer

Inferno + TypeScript Isomorphic Application

I'm trying to create an isomorphic application using Express and Inferno. Unfortunately, I can not find any similar projects on the Internet. I tried to create my own using Razzle. But, unfortunately, I did not manage to connect TypeScript, despite…
FoxPro
  • 2,054
  • 4
  • 11
  • 34
0
votes
1 answer

Server side rendering with create-inferno-app

I am attempting to set up a server-side implementation of create-inferno-app. So, i initially run the create-inferno-app to create a sample project and run the npm start run and everything looks fine. This is my index.js import { render } from…
anoop chandran
  • 1,460
  • 5
  • 23
  • 42
0
votes
1 answer

styled jsx for Inferno in typescript

How can I write definitions for Inferno.js import 'react'; declare module 'react' { interface StyleHTMLAttributes extends React.HTMLAttributes { jsx?: boolean; global?: boolean; } } because export const Footer = props => …
AHOYAHOY
  • 1,856
  • 4
  • 24
  • 34
0
votes
2 answers

InfernoJS/ReactJS - Why is my for loop returning the same index in my render?

I have a for loop in my render function, its supposed for render 5 stars from the fontawesome library, a rating of 3 should render 3 full stars and 2 empty stars.... the issue i am having is that my iterator "i" is returning as 5 for all of them.…
chemi
  • 1
0
votes
1 answer

inferno-hyperscript hyperscript-helpers declaration error

I'm using: Inferno webpack typescript hyperscript-helpers hyperscript inferno-hyperscript I have this 3 code line: import h from 'inferno-hyperscript'; import hh from 'hyperscript-helpers'; const html = hh(h); this code give me…
user2053904
0
votes
1 answer

How to use createRenderer with streams in InfernoJS?

InfernoJS gives a very interesting but unfortunately very brief sketch of a purely functional way to bootstrap an app: import Inferno from 'inferno'; import { scan, map } from 'most'; ... const model$ = scan(update, 0, actions$); const vNodes$ =…
0
votes
1 answer

Use inferno-devtools in a chrome extension

I'm working on a chrome extension popup that uses inferno. So far, my inferno components themselves are rendering just fine in the popup, so inferno itself is working. I installed inferno-devtools in my dependencies. manifest.json: { "name":…
jinglesthula
  • 4,446
  • 4
  • 45
  • 79
1
2