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
8
votes
1 answer

Svelte 'evaluate script' time is appearing higher compare to inferno, preact

I am trying to choose a library for my project which provide data binding and DOM management features. Comparing multiple libraries I ended up with Inferno and Svelte. I noticed evaluate script time of Svelte is higher than the other libraries…
Dip686
  • 641
  • 6
  • 16
6
votes
1 answer

How to use dev:module entry point in infernojs npm package

I'm using inferno js with typescript (using ts-loader and transformInferno in webpack3) and mostly it's working well. However when running within the webpack-dev-server inferno outputs You are running production build of Inferno in development mode.…
Rob Bacon
  • 63
  • 1
  • 5
4
votes
0 answers

onClick event firing twice after first click (InfernoJS/Redux)

I'm doing a ToDo list using react and redux, and I'm facing a problem: When I first click in a ToDo item to toggle it to completed it works successfully, but after that, the onClick always fire twice, I've already faced a problem like that while I…
2
votes
1 answer

Can React be used without JSX?

jsx is used tactically in React and helps developers understand React components by viewing the code in more detail. Now the question is, is it possible to use other methods such as using simple functions or using other libraries such as preact or…
Amir Asgari
  • 41
  • 1
  • 5
2
votes
3 answers

How can i render the result of createElement() in Vue.js without creating a component

My goal is to build a test suite to visualize the differences of implementation of the inner hyperscript method createElement() (otherwise known as h()) within React, preact, Inferno, Snabbdom, Vue.. In React, i can invoke it like that (without…
zipang
  • 105
  • 1
  • 10
1
vote
1 answer

Parcel with TypeScript & TSX without babelrc?

I'm just getting to know parceljs and find it very delightful, there is just one thing that seems a bit overkill: I'm using parceljs to transpile infernojs' tsx files to javascript. The generated code, however, contains the original…
Lusito
  • 933
  • 8
  • 10
1
vote
1 answer

Best way to convert only JSX in TSX and maintaining TS

I have a bunch of TSX components written in Inferno (similar to React/Preact). I'm in need of just .ts versions with the JSX aspects converted. The environment I'm using it in only supports TypeScript and the Inferno JSX transformer is only written…
ddibiase
  • 1,412
  • 1
  • 20
  • 44
1
vote
1 answer

Babel Plugin Module Alias not working w/ require('react')

I am building an app with electron-forge, that is not really important other than that it extends the .babelrc to .compilerc in my project configuration. I am using infernojs / inferno-compat and babel-plugin-module-resolver, to alias references to…
jordan.baucke
  • 4,308
  • 10
  • 54
  • 77
1
vote
1 answer

How to run Inferno JSX on server?

I am trying to use Inferno to render on the server. The documentation inferno-server and server-side-rendering does not say show to set-up babel & run the sever. All I could find is InfernoJS Babel Plugin but noting about running it on Node. Any…
Brian
  • 1,026
  • 1
  • 15
  • 25
1
vote
1 answer

Using styled-components with Inferno JS

I'm using InfernoJS as an alternative for React. Is it possible to use styled-components in Inferno without inferno-compat?
Aleem S
  • 151
  • 1
  • 18
1
vote
0 answers

Inferno.js and React Semantic UI Toolkit Compatibility

I'm working through a tutorial today, but trying to substitute Inferno since it will be good practice if we go with Inferno for a new web app I'm building (since I'm not allowed to use React - it's complicated). In the tut, I was introduced to the…
redOctober13
  • 3,662
  • 6
  • 34
  • 61
1
vote
1 answer

infernojs pass data to parent component

I am stuck in my simple infernojs v1.2.2 app to pass data to parent component, this issue might be linked to the typescript because i got some error for typescript which are not (It has issuewith recognizing props from parent component). I try to…
jadok
  • 113
  • 11
0
votes
1 answer

What is the different between $HasTextChildren and $HasVNodeChildren plus createTextVNode()?

In Inferno, when trying to define children shape in compile time, there are two ways for defining the children as text: function Hello() { let h = "Hello"; return (

{h}

); } import { createTextVNode }…
0
votes
0 answers

Babel error: Unknown option: .config when trying to upgrade dependencies of Inferno app

I have an app which is created with Create Inferno App. I ejected at some point to customize build configs. Now I am trying to upgrade dependencies to the latest versions and replace deprecated dependencies. When trying to build my app. I get this…
0
votes
1 answer

How to run an Inferno project?

Hi I am trying to run this github project https://github.com/LemmyNet/lemmy-ui How do I run it? I tried using npm start it says yarn not found.
Arya
  • 11
  • 9
1
2