How to use the inferno.render function in inferno

To help you get started, we’ve selected a few inferno examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github infernojs / inferno / packages / inferno-mobx / __tests__ / types.spec.tsx View on Github external
it('Should be possible to return void from render SFC', () => {
      // SFC
      const MyComponent: SFC = () => {
        return;
      };

      render(
        , // Error: JSX element type 'InfernoNode' is not a constructor function for JSX elements. Type 'string' is not assignable to type 'Element | null'
        container
      );
    });
github jhsware / inferno-bootstrap / __test__ / utils.js View on Github external
export function unmountComponentAtNode(container) {
  render(null, container);
  return true;
}
github infernojs / inferno / packages / inferno-router / __tests__ / issue1322.spec.jsx View on Github external
afterEach(function() {
    render(null, container);
    container.innerHTML = '';
    document.body.removeChild(container);
  });
github infernojs / inferno / packages / inferno-create-element / __tests__ / patchMixedKeyed.spec.browser.js View on Github external
afterEach(function() {
    render(null, container);
    container.innerHTML = "";
    document.body.removeChild(container);
  });
github infernojs / inferno / packages / inferno-create-element / __tests__ / validations.spec.jsx View on Github external
        expect(() => render(errorNode, container)).toThrowError(
          'Inferno Error: Encountered child without key during keyed algorithm. If this error points to Array make sure children is flat list. Location: \n&gt;&gt; <div>\n&gt;&gt; <div>'</div></div>
github jhsware / inferno-bootstrap / test / browser / src / app.js View on Github external
Bootstrap 4 Docs
          
        
        <div>
          
        </div>
      
    )
  }
}

if (typeof window !== 'undefined') {
  render(, document.getElementById('app'))
}
github infernojs / inferno / packages / inferno-hydrate / __tests__ / hydrate.spec.jsx View on Github external
<span>1b</span>
              <div>1c</div>
            
            
              <span>2a</span>
              <span>2b</span>
              <span>2c</span>
            
            
          ,
          container
        );

        expect(container.innerHTML).toBe('<span>1a</span><span>1b</span><div>1c</div><span>2a</span><span>2b</span><span>2c</span>');

        render(
          
            
              <span>1a</span>
              <span>1c</span>
            
            
              <span>2a</span>
              <span>2b</span>
              <span>2c</span>
            
            
          ,
          container
        );

        expect(container.innerHTML).toBe('<span>1a</span><span>1c</span><span>2a</span><span>2b</span><span>2c</span>');
github infernojs / inferno / packages / inferno-router / __tests__ / asyncBeforeBrowser.spec.jsx View on Github external
afterEach(function() {
      render(null, container);
      document.body.removeChild(container);
    });
github infernojs / inferno-boilerplate / src / index.js View on Github external
<br>
      Tester's page
      <br>
      My App

      
    
  
);

render(routes, document.getElementById('app'));
github bs32g1038 / node-blog / blog / src / components / Message.jsx View on Github external
destroy() {
            render(null, div);
            document.body.removeChild(div);
        },
    };