React: validateDOMNesting: #text cannot appear as a child of












11














Can you explain me why react show warning Warning: validateDOMNesting(...): #text cannot appear as a child of <tr>. See Router > RouterContext > CarWashPage > AllCarWashTable > tr > #text.? I don't see any text inside tag tr



Code that renders table



export default class AllCarWashTable extends React.Component{

constructor(props) {
super(props);
this.generateHeaders = this.generateHeaders.bind(this);
this.generateRows = this.generateRows.bind(this);
};

static propTypes = {
cols : React.PropTypes.array.isRequired,
rows : React.PropTypes.array.isRequired
}

generateHeaders() {
let cols = this.props.cols; // [{key, label}]
return cols.map(function(colData) {
return <th key={colData.key}> {colData.label} </th>;
});
}

generateRows() {
let cols = this.props.cols, // [{key, label}]
data = this.props.rows;
if (this.props.rows.length > 0) {
return data.map(function(item) {
var cells = cols.map(function(colData) {
return <td key={colData.key}> {item[colData.key]} </td>;
});
return <tr key={item.id}> {cells} </tr>;
});
}
}

render(){
let headers = this.generateHeaders();
let rows = this.generateRows();

return (
<table className="table table-hove">
<thead>
<tr>
{headers}
</tr>
</thead>
<tbody>
{rows}
</tbody>

</table>
)
}
}


At the end, my table has the following structure



enter image description here



Where is the problem?










share|improve this question





























    11














    Can you explain me why react show warning Warning: validateDOMNesting(...): #text cannot appear as a child of <tr>. See Router > RouterContext > CarWashPage > AllCarWashTable > tr > #text.? I don't see any text inside tag tr



    Code that renders table



    export default class AllCarWashTable extends React.Component{

    constructor(props) {
    super(props);
    this.generateHeaders = this.generateHeaders.bind(this);
    this.generateRows = this.generateRows.bind(this);
    };

    static propTypes = {
    cols : React.PropTypes.array.isRequired,
    rows : React.PropTypes.array.isRequired
    }

    generateHeaders() {
    let cols = this.props.cols; // [{key, label}]
    return cols.map(function(colData) {
    return <th key={colData.key}> {colData.label} </th>;
    });
    }

    generateRows() {
    let cols = this.props.cols, // [{key, label}]
    data = this.props.rows;
    if (this.props.rows.length > 0) {
    return data.map(function(item) {
    var cells = cols.map(function(colData) {
    return <td key={colData.key}> {item[colData.key]} </td>;
    });
    return <tr key={item.id}> {cells} </tr>;
    });
    }
    }

    render(){
    let headers = this.generateHeaders();
    let rows = this.generateRows();

    return (
    <table className="table table-hove">
    <thead>
    <tr>
    {headers}
    </tr>
    </thead>
    <tbody>
    {rows}
    </tbody>

    </table>
    )
    }
    }


    At the end, my table has the following structure



    enter image description here



    Where is the problem?










    share|improve this question



























      11












      11








      11


      1





      Can you explain me why react show warning Warning: validateDOMNesting(...): #text cannot appear as a child of <tr>. See Router > RouterContext > CarWashPage > AllCarWashTable > tr > #text.? I don't see any text inside tag tr



      Code that renders table



      export default class AllCarWashTable extends React.Component{

      constructor(props) {
      super(props);
      this.generateHeaders = this.generateHeaders.bind(this);
      this.generateRows = this.generateRows.bind(this);
      };

      static propTypes = {
      cols : React.PropTypes.array.isRequired,
      rows : React.PropTypes.array.isRequired
      }

      generateHeaders() {
      let cols = this.props.cols; // [{key, label}]
      return cols.map(function(colData) {
      return <th key={colData.key}> {colData.label} </th>;
      });
      }

      generateRows() {
      let cols = this.props.cols, // [{key, label}]
      data = this.props.rows;
      if (this.props.rows.length > 0) {
      return data.map(function(item) {
      var cells = cols.map(function(colData) {
      return <td key={colData.key}> {item[colData.key]} </td>;
      });
      return <tr key={item.id}> {cells} </tr>;
      });
      }
      }

      render(){
      let headers = this.generateHeaders();
      let rows = this.generateRows();

      return (
      <table className="table table-hove">
      <thead>
      <tr>
      {headers}
      </tr>
      </thead>
      <tbody>
      {rows}
      </tbody>

      </table>
      )
      }
      }


      At the end, my table has the following structure



      enter image description here



      Where is the problem?










      share|improve this question















      Can you explain me why react show warning Warning: validateDOMNesting(...): #text cannot appear as a child of <tr>. See Router > RouterContext > CarWashPage > AllCarWashTable > tr > #text.? I don't see any text inside tag tr



      Code that renders table



      export default class AllCarWashTable extends React.Component{

      constructor(props) {
      super(props);
      this.generateHeaders = this.generateHeaders.bind(this);
      this.generateRows = this.generateRows.bind(this);
      };

      static propTypes = {
      cols : React.PropTypes.array.isRequired,
      rows : React.PropTypes.array.isRequired
      }

      generateHeaders() {
      let cols = this.props.cols; // [{key, label}]
      return cols.map(function(colData) {
      return <th key={colData.key}> {colData.label} </th>;
      });
      }

      generateRows() {
      let cols = this.props.cols, // [{key, label}]
      data = this.props.rows;
      if (this.props.rows.length > 0) {
      return data.map(function(item) {
      var cells = cols.map(function(colData) {
      return <td key={colData.key}> {item[colData.key]} </td>;
      });
      return <tr key={item.id}> {cells} </tr>;
      });
      }
      }

      render(){
      let headers = this.generateHeaders();
      let rows = this.generateRows();

      return (
      <table className="table table-hove">
      <thead>
      <tr>
      {headers}
      </tr>
      </thead>
      <tbody>
      {rows}
      </tbody>

      </table>
      )
      }
      }


      At the end, my table has the following structure



      enter image description here



      Where is the problem?







      reactjs warnings






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 7 '16 at 10:39

























      asked Oct 7 '16 at 9:56









      Bizon4ik

      4011420




      4011420
























          7 Answers
          7






          active

          oldest

          votes


















          18














          The problem is the spaces in this line:



          return <tr key={item.id}> {cells} </tr>;


          It might seem silly, but you're actually rendering the cells and some whitespace (i.e. text). It should look like this:



          return <tr key={item.id}>{cells}</tr>;





          share|improve this answer

















          • 1




            Thank you, you are absolutly right :)
            – Bizon4ik
            Oct 7 '16 at 10:32



















          3














          In my case where was an empty '' output (wo space inside)



          <tbody>
          {this.props.orders.map(
          order =>this.props.selectedAgent === order.agent ?
          <Row item={order} key={ order._id } /> : ''
          )
          }
          </tbody>


          The null does the trick:



          <tbody>
          {this.props.orders.map(
          order =>this.props.selectedAgent === order.agent ?
          <Row item={order} key={ order._id } /> : null
          )
          }
          </tbody>





          share|improve this answer























          • Thank you. This does solved my problem.
            – sg552
            Mar 1 at 16:11



















          3














          The accepted answer wasn't the root cause in my case. I got the same warning when I had a comment after <th> tag. The warning went away when I removed the comment.



          const TableHeaders = (props) => (
          <tr>
          <th>ID</th> {/* TODO: I had a comment like this */}
          </tr>
          )


          EDIT: Removing the space between </th> and {/* will also do the trick.






          share|improve this answer























          • Happened to me too
            – julianljk
            Sep 22 '17 at 17:10



















          1














          This will also happens when using logical AND short-circuit && to show/hide conditional rows:



          {
          foo && (<tr><td>{foo}</td></tr>)
          }


          change it to ternary a ? b : c form where c is null will fix it



          {
          foo ? (<tr><td>{foo}</td></tr>) : null
          }





          share|improve this answer































            0














            In addition to @Jarno's answer, I also ran into this issue as well. Double check that you don't have any additional } or { at the end of your javascript code:



            {this.props.headers.map(header => <th key={header}>{header}</th>)}}






            share|improve this answer





























              0














              I received this warning when I had a parenthesis instead of a curly bracket



              <table>
              <tbody>
              <tr>
              (showMsg && <td>Hi</td>} // leading '(' should be a '{'
              </td>
              </tbody>
              </table>





              share|improve this answer





























                0














                Notification warning: validateDOMNesting(...): Whitespace text nodes cannot appear as a child of <tbody>. Make sure you don't have any extra white space between tags on each line of your source code.
                In my case, initialize variable should NOT is null.



                 let elementCart = ''; {/* in the here,warning will append  */}
                if(productsCart.length > 0){
                elementCart = productsCart.map((item, index) => {
                return <CartItem item={item} key={index} index={index} />
                });
                }

                return(
                <tbody id="my-cart-body">
                {elementCart}
                </tbody>
                )


                Solution: let elementCart = null;






                share|improve this answer























                  Your Answer






                  StackExchange.ifUsing("editor", function () {
                  StackExchange.using("externalEditor", function () {
                  StackExchange.using("snippets", function () {
                  StackExchange.snippets.init();
                  });
                  });
                  }, "code-snippets");

                  StackExchange.ready(function() {
                  var channelOptions = {
                  tags: "".split(" "),
                  id: "1"
                  };
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function() {
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled) {
                  StackExchange.using("snippets", function() {
                  createEditor();
                  });
                  }
                  else {
                  createEditor();
                  }
                  });

                  function createEditor() {
                  StackExchange.prepareEditor({
                  heartbeatType: 'answer',
                  autoActivateHeartbeat: false,
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader: {
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  },
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  });


                  }
                  });














                  draft saved

                  draft discarded


















                  StackExchange.ready(
                  function () {
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f39914455%2freact-validatedomnesting-text-cannot-appear-as-a-child-of-tr%23new-answer', 'question_page');
                  }
                  );

                  Post as a guest















                  Required, but never shown

























                  7 Answers
                  7






                  active

                  oldest

                  votes








                  7 Answers
                  7






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes









                  18














                  The problem is the spaces in this line:



                  return <tr key={item.id}> {cells} </tr>;


                  It might seem silly, but you're actually rendering the cells and some whitespace (i.e. text). It should look like this:



                  return <tr key={item.id}>{cells}</tr>;





                  share|improve this answer

















                  • 1




                    Thank you, you are absolutly right :)
                    – Bizon4ik
                    Oct 7 '16 at 10:32
















                  18














                  The problem is the spaces in this line:



                  return <tr key={item.id}> {cells} </tr>;


                  It might seem silly, but you're actually rendering the cells and some whitespace (i.e. text). It should look like this:



                  return <tr key={item.id}>{cells}</tr>;





                  share|improve this answer

















                  • 1




                    Thank you, you are absolutly right :)
                    – Bizon4ik
                    Oct 7 '16 at 10:32














                  18












                  18








                  18






                  The problem is the spaces in this line:



                  return <tr key={item.id}> {cells} </tr>;


                  It might seem silly, but you're actually rendering the cells and some whitespace (i.e. text). It should look like this:



                  return <tr key={item.id}>{cells}</tr>;





                  share|improve this answer












                  The problem is the spaces in this line:



                  return <tr key={item.id}> {cells} </tr>;


                  It might seem silly, but you're actually rendering the cells and some whitespace (i.e. text). It should look like this:



                  return <tr key={item.id}>{cells}</tr>;






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Oct 7 '16 at 10:26









                  tobiasandersen

                  3,96821631




                  3,96821631








                  • 1




                    Thank you, you are absolutly right :)
                    – Bizon4ik
                    Oct 7 '16 at 10:32














                  • 1




                    Thank you, you are absolutly right :)
                    – Bizon4ik
                    Oct 7 '16 at 10:32








                  1




                  1




                  Thank you, you are absolutly right :)
                  – Bizon4ik
                  Oct 7 '16 at 10:32




                  Thank you, you are absolutly right :)
                  – Bizon4ik
                  Oct 7 '16 at 10:32













                  3














                  In my case where was an empty '' output (wo space inside)



                  <tbody>
                  {this.props.orders.map(
                  order =>this.props.selectedAgent === order.agent ?
                  <Row item={order} key={ order._id } /> : ''
                  )
                  }
                  </tbody>


                  The null does the trick:



                  <tbody>
                  {this.props.orders.map(
                  order =>this.props.selectedAgent === order.agent ?
                  <Row item={order} key={ order._id } /> : null
                  )
                  }
                  </tbody>





                  share|improve this answer























                  • Thank you. This does solved my problem.
                    – sg552
                    Mar 1 at 16:11
















                  3














                  In my case where was an empty '' output (wo space inside)



                  <tbody>
                  {this.props.orders.map(
                  order =>this.props.selectedAgent === order.agent ?
                  <Row item={order} key={ order._id } /> : ''
                  )
                  }
                  </tbody>


                  The null does the trick:



                  <tbody>
                  {this.props.orders.map(
                  order =>this.props.selectedAgent === order.agent ?
                  <Row item={order} key={ order._id } /> : null
                  )
                  }
                  </tbody>





                  share|improve this answer























                  • Thank you. This does solved my problem.
                    – sg552
                    Mar 1 at 16:11














                  3












                  3








                  3






                  In my case where was an empty '' output (wo space inside)



                  <tbody>
                  {this.props.orders.map(
                  order =>this.props.selectedAgent === order.agent ?
                  <Row item={order} key={ order._id } /> : ''
                  )
                  }
                  </tbody>


                  The null does the trick:



                  <tbody>
                  {this.props.orders.map(
                  order =>this.props.selectedAgent === order.agent ?
                  <Row item={order} key={ order._id } /> : null
                  )
                  }
                  </tbody>





                  share|improve this answer














                  In my case where was an empty '' output (wo space inside)



                  <tbody>
                  {this.props.orders.map(
                  order =>this.props.selectedAgent === order.agent ?
                  <Row item={order} key={ order._id } /> : ''
                  )
                  }
                  </tbody>


                  The null does the trick:



                  <tbody>
                  {this.props.orders.map(
                  order =>this.props.selectedAgent === order.agent ?
                  <Row item={order} key={ order._id } /> : null
                  )
                  }
                  </tbody>






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited May 5 at 21:03









                  Abdullah

                  1,2711123




                  1,2711123










                  answered Feb 26 at 8:42









                  Victor

                  137211




                  137211












                  • Thank you. This does solved my problem.
                    – sg552
                    Mar 1 at 16:11


















                  • Thank you. This does solved my problem.
                    – sg552
                    Mar 1 at 16:11
















                  Thank you. This does solved my problem.
                  – sg552
                  Mar 1 at 16:11




                  Thank you. This does solved my problem.
                  – sg552
                  Mar 1 at 16:11











                  3














                  The accepted answer wasn't the root cause in my case. I got the same warning when I had a comment after <th> tag. The warning went away when I removed the comment.



                  const TableHeaders = (props) => (
                  <tr>
                  <th>ID</th> {/* TODO: I had a comment like this */}
                  </tr>
                  )


                  EDIT: Removing the space between </th> and {/* will also do the trick.






                  share|improve this answer























                  • Happened to me too
                    – julianljk
                    Sep 22 '17 at 17:10
















                  3














                  The accepted answer wasn't the root cause in my case. I got the same warning when I had a comment after <th> tag. The warning went away when I removed the comment.



                  const TableHeaders = (props) => (
                  <tr>
                  <th>ID</th> {/* TODO: I had a comment like this */}
                  </tr>
                  )


                  EDIT: Removing the space between </th> and {/* will also do the trick.






                  share|improve this answer























                  • Happened to me too
                    – julianljk
                    Sep 22 '17 at 17:10














                  3












                  3








                  3






                  The accepted answer wasn't the root cause in my case. I got the same warning when I had a comment after <th> tag. The warning went away when I removed the comment.



                  const TableHeaders = (props) => (
                  <tr>
                  <th>ID</th> {/* TODO: I had a comment like this */}
                  </tr>
                  )


                  EDIT: Removing the space between </th> and {/* will also do the trick.






                  share|improve this answer














                  The accepted answer wasn't the root cause in my case. I got the same warning when I had a comment after <th> tag. The warning went away when I removed the comment.



                  const TableHeaders = (props) => (
                  <tr>
                  <th>ID</th> {/* TODO: I had a comment like this */}
                  </tr>
                  )


                  EDIT: Removing the space between </th> and {/* will also do the trick.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited May 5 at 21:08









                  Abdullah

                  1,2711123




                  1,2711123










                  answered Sep 18 '17 at 18:40









                  Jarno Argillander

                  4,78012227




                  4,78012227












                  • Happened to me too
                    – julianljk
                    Sep 22 '17 at 17:10


















                  • Happened to me too
                    – julianljk
                    Sep 22 '17 at 17:10
















                  Happened to me too
                  – julianljk
                  Sep 22 '17 at 17:10




                  Happened to me too
                  – julianljk
                  Sep 22 '17 at 17:10











                  1














                  This will also happens when using logical AND short-circuit && to show/hide conditional rows:



                  {
                  foo && (<tr><td>{foo}</td></tr>)
                  }


                  change it to ternary a ? b : c form where c is null will fix it



                  {
                  foo ? (<tr><td>{foo}</td></tr>) : null
                  }





                  share|improve this answer




























                    1














                    This will also happens when using logical AND short-circuit && to show/hide conditional rows:



                    {
                    foo && (<tr><td>{foo}</td></tr>)
                    }


                    change it to ternary a ? b : c form where c is null will fix it



                    {
                    foo ? (<tr><td>{foo}</td></tr>) : null
                    }





                    share|improve this answer


























                      1












                      1








                      1






                      This will also happens when using logical AND short-circuit && to show/hide conditional rows:



                      {
                      foo && (<tr><td>{foo}</td></tr>)
                      }


                      change it to ternary a ? b : c form where c is null will fix it



                      {
                      foo ? (<tr><td>{foo}</td></tr>) : null
                      }





                      share|improve this answer














                      This will also happens when using logical AND short-circuit && to show/hide conditional rows:



                      {
                      foo && (<tr><td>{foo}</td></tr>)
                      }


                      change it to ternary a ? b : c form where c is null will fix it



                      {
                      foo ? (<tr><td>{foo}</td></tr>) : null
                      }






                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited yesterday

























                      answered Nov 28 at 12:47









                      Kevin Law

                      1,0701116




                      1,0701116























                          0














                          In addition to @Jarno's answer, I also ran into this issue as well. Double check that you don't have any additional } or { at the end of your javascript code:



                          {this.props.headers.map(header => <th key={header}>{header}</th>)}}






                          share|improve this answer


























                            0














                            In addition to @Jarno's answer, I also ran into this issue as well. Double check that you don't have any additional } or { at the end of your javascript code:



                            {this.props.headers.map(header => <th key={header}>{header}</th>)}}






                            share|improve this answer
























                              0












                              0








                              0






                              In addition to @Jarno's answer, I also ran into this issue as well. Double check that you don't have any additional } or { at the end of your javascript code:



                              {this.props.headers.map(header => <th key={header}>{header}</th>)}}






                              share|improve this answer












                              In addition to @Jarno's answer, I also ran into this issue as well. Double check that you don't have any additional } or { at the end of your javascript code:



                              {this.props.headers.map(header => <th key={header}>{header}</th>)}}







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Oct 4 '17 at 13:28









                              FrankerZ

                              16.3k72859




                              16.3k72859























                                  0














                                  I received this warning when I had a parenthesis instead of a curly bracket



                                  <table>
                                  <tbody>
                                  <tr>
                                  (showMsg && <td>Hi</td>} // leading '(' should be a '{'
                                  </td>
                                  </tbody>
                                  </table>





                                  share|improve this answer


























                                    0














                                    I received this warning when I had a parenthesis instead of a curly bracket



                                    <table>
                                    <tbody>
                                    <tr>
                                    (showMsg && <td>Hi</td>} // leading '(' should be a '{'
                                    </td>
                                    </tbody>
                                    </table>





                                    share|improve this answer
























                                      0












                                      0








                                      0






                                      I received this warning when I had a parenthesis instead of a curly bracket



                                      <table>
                                      <tbody>
                                      <tr>
                                      (showMsg && <td>Hi</td>} // leading '(' should be a '{'
                                      </td>
                                      </tbody>
                                      </table>





                                      share|improve this answer












                                      I received this warning when I had a parenthesis instead of a curly bracket



                                      <table>
                                      <tbody>
                                      <tr>
                                      (showMsg && <td>Hi</td>} // leading '(' should be a '{'
                                      </td>
                                      </tbody>
                                      </table>






                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Mar 19 at 1:18









                                      lukeaus

                                      3,68312647




                                      3,68312647























                                          0














                                          Notification warning: validateDOMNesting(...): Whitespace text nodes cannot appear as a child of <tbody>. Make sure you don't have any extra white space between tags on each line of your source code.
                                          In my case, initialize variable should NOT is null.



                                           let elementCart = ''; {/* in the here,warning will append  */}
                                          if(productsCart.length > 0){
                                          elementCart = productsCart.map((item, index) => {
                                          return <CartItem item={item} key={index} index={index} />
                                          });
                                          }

                                          return(
                                          <tbody id="my-cart-body">
                                          {elementCart}
                                          </tbody>
                                          )


                                          Solution: let elementCart = null;






                                          share|improve this answer




























                                            0














                                            Notification warning: validateDOMNesting(...): Whitespace text nodes cannot appear as a child of <tbody>. Make sure you don't have any extra white space between tags on each line of your source code.
                                            In my case, initialize variable should NOT is null.



                                             let elementCart = ''; {/* in the here,warning will append  */}
                                            if(productsCart.length > 0){
                                            elementCart = productsCart.map((item, index) => {
                                            return <CartItem item={item} key={index} index={index} />
                                            });
                                            }

                                            return(
                                            <tbody id="my-cart-body">
                                            {elementCart}
                                            </tbody>
                                            )


                                            Solution: let elementCart = null;






                                            share|improve this answer


























                                              0












                                              0








                                              0






                                              Notification warning: validateDOMNesting(...): Whitespace text nodes cannot appear as a child of <tbody>. Make sure you don't have any extra white space between tags on each line of your source code.
                                              In my case, initialize variable should NOT is null.



                                               let elementCart = ''; {/* in the here,warning will append  */}
                                              if(productsCart.length > 0){
                                              elementCart = productsCart.map((item, index) => {
                                              return <CartItem item={item} key={index} index={index} />
                                              });
                                              }

                                              return(
                                              <tbody id="my-cart-body">
                                              {elementCart}
                                              </tbody>
                                              )


                                              Solution: let elementCart = null;






                                              share|improve this answer














                                              Notification warning: validateDOMNesting(...): Whitespace text nodes cannot appear as a child of <tbody>. Make sure you don't have any extra white space between tags on each line of your source code.
                                              In my case, initialize variable should NOT is null.



                                               let elementCart = ''; {/* in the here,warning will append  */}
                                              if(productsCart.length > 0){
                                              elementCart = productsCart.map((item, index) => {
                                              return <CartItem item={item} key={index} index={index} />
                                              });
                                              }

                                              return(
                                              <tbody id="my-cart-body">
                                              {elementCart}
                                              </tbody>
                                              )


                                              Solution: let elementCart = null;







                                              share|improve this answer














                                              share|improve this answer



                                              share|improve this answer








                                              edited May 2 at 5:27









                                              coder

                                              3,343112034




                                              3,343112034










                                              answered May 2 at 3:14









                                              Đặng Xuân Trường

                                              1




                                              1






























                                                  draft saved

                                                  draft discarded




















































                                                  Thanks for contributing an answer to Stack Overflow!


                                                  • Please be sure to answer the question. Provide details and share your research!

                                                  But avoid



                                                  • Asking for help, clarification, or responding to other answers.

                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                  To learn more, see our tips on writing great answers.





                                                  Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                                  Please pay close attention to the following guidance:


                                                  • Please be sure to answer the question. Provide details and share your research!

                                                  But avoid



                                                  • Asking for help, clarification, or responding to other answers.

                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                  To learn more, see our tips on writing great answers.




                                                  draft saved


                                                  draft discarded














                                                  StackExchange.ready(
                                                  function () {
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f39914455%2freact-validatedomnesting-text-cannot-appear-as-a-child-of-tr%23new-answer', 'question_page');
                                                  }
                                                  );

                                                  Post as a guest















                                                  Required, but never shown





















































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown

































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown







                                                  Popular posts from this blog

                                                  Monofisismo

                                                  Angular Downloading a file using contenturl with Basic Authentication

                                                  Olmecas