Coder Social home page Coder Social logo

inferno-boilerplate's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

inferno-boilerplate's Issues

Boilerplate does not build correctly

I tried to get the boilerplate running but it seems that it does not build correctly. I get a blank white page and the following error in the browser.

Uncaught ReferenceError: Inferno is not defined

Steps

  1. `git clone [email protected]:infernojs/inferno-boilerplate.git
  2. cd inferno-boilerplate
  3. npm install
  4. npm start

SSR branch with inferno-server

Add a branch for SSR using inferno-server to provide a sample configuration

This page contains obsolete information relying on abandoned packages (fluxbox is dead). Replacing this page with a link to the new sample branch of this repository would be far better.

Instead of writing documentation on the website, embed documentation in the sample boilerplate in the form of comments.

I recommend Fastify over Express for the server-side

Uncaught SyntaxError: Unexpected token <

I've get "Uncaught SyntaxError: Unexpected token <" error when I want to redirect for path="/user/sina" .

import Inferno from 'inferno';
import { Router, Route, IndexRoute } from 'inferno-router';
import createBrowserHistory from 'history/createBrowserHistory';

const browserHistory = createBrowserHistory();

function App({ children }) {
  return (
    <div>
      {children}
    </div>
  )
}

function NoMatch({ children, params }) {
  return (
    <div>no match</div>
  )
}

function Home({ children }) {
  return (
    <div>home</div>
  )
}

// `children` in this case will be the `User` component
function Users({ children, params }) {

  return (
    <div>
      <h2>fs</h2>
      {children}
    </div>
  )
}

function User({ params }) {
  return <h1>{JSON.stringify(params)}</h1>
}

const routes = (
  <Router history={browserHistory}>
    <Route component={App}>
      <IndexRoute component={Home} />
      <Route path="/users" component={Users}>
        <Route path="/user/:username" component={User} />
      </Route>
      <Route path="*" component={NoMatch} />
    </Route>
  </Router>
);

// Render HTML on the browser
Inferno.render(routes, document.getElementById('app'));

How can I enable decorators?

I am trying to use inferno-mobx binding with inferno-boilerplate but I cannot enable decorators. I tried adding plugin transform-decorators-legacy to .babelrc but it did not work.

inferno-router

Hi! I see the yarnlock, but I did an npm install, not sure if that's totally fine, because I get a router related error in the browser console (after npm start && open localhost:8080):

Uncaught TypeError: Inferno: Error "inferno-router" requires a history prop passed
    at createrRouter (bundle.js:9659)
    at new Router (bundle.js:9684)
    at Object.createClassComponentInstance (bundle.js:1282)
    at mountComponent (bundle.js:4250)
    at Object.mount (bundle.js:4130)
    at render (bundle.js:3488)
    at Object._typeof (bundle.js:7132)
    at __webpack_require__ (bundle.js:660)
    at fn (bundle.js:84)
    at Object.<anonymous> (bundle.js:15634)

eslint

Hi! The project has eslint, but no eslintrc (webstorm complained a bit about it) - probably semistandard would be fine, but not really sure if it's intentional. Thanks!

Out of date

This is outdated, even more than create-inferno-app.
Please maintain one minimal boilerplate up to date to facilitate adoption.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.