Results 1 to 2 of 2

Thread: ExtReact Component inside Plain HTML

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Jul 2008
    Posts
    10
    Vote Rating
    1
      0  

    Default ExtReact Component inside Plain HTML

    Hi,

    in ExtReact 6.6.2 it is not possible to use a Button component inside a plain HTML Component:

    HTML Code:
    import React from 'react';
    import { Container, Button } from '@sencha/ext-modern';
    
    
    export default function About() {
      return (
        <Container padding="20">
          <h1>About this App</h1>
          <p>Lorem ipsum dolor sit amet.</p>
            <div>
                <Button text="test" />
            </div>
        </Container>
      )
    }

    The error is:

    PHP Code:
    Warning: <Button /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.    in Button (created by About)    
    in div 
    It was possible before 6.6.2 and it would be a really expensive change for me to rewrite my complete code.

    Can someone help?

    Thanks
    Chris

  2. #2
    Ext Team Member
    Join Date
    Sep 2017
    Posts
    551
    Vote Rating
    -259
      -1  

    Default

    Hi Chris,

    Thank you for bringing this to our attention. I have sent this to the support team to review. They will get back to you at their earliest convenience. I appreciate your patience.

    Thanks,
    Michele

Similar Threads

  1. Replies: 1
    Last Post: 15 Sep 2015, 6:51 AM
  2. Insert component inside HTML
    By amsoft2001 in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 18 Dec 2013, 11:11 AM
  3. Google Map inside List Template / Component inside HTML
    By nikopotam in forum Sencha Touch 2.x: Discussion
    Replies: 3
    Last Post: 3 Sep 2013, 11:29 PM
  4. Replies: 0
    Last Post: 24 May 2011, 7:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •