Skip to content

React component getting loaded, but its contens are not getting displayed #27

@chiragt-thirdrock

Description

@chiragt-thirdrock

Hello devs,

I am facing weird issue when using react-in-angularjs in my angular 1 project.

here i am sharing code snippet to get it understand.

reactComponent.js

import * as React from "react";
import {angularize} from "react-in-angularjs";

class TodoList extends React.Component {
    render() {
      let e = React.createElement('div', null, `Hello I am react`);
      
      return e;
    }
  }

angularize(TodoList, "appTodoList", angular.module("app"), {});

index.html

<todo-list id="react-app"> </todo-list>

DOM

package.json

Let me know if anybody have solution of this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions