File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from 'react' ;
22import ReactDOM from 'react-dom/client' ;
33import './index.css' ;
4- import { IgrRipple , IgrRippleModule , IgrButton , IgrButtonModule } from 'igniteui-react' ;
4+ import { IgrRipple , IgrButton } from 'igniteui-react' ;
55import 'igniteui-webcomponents/themes/light/bootstrap.css' ;
66
7- IgrRippleModule . register ( ) ;
8- IgrButtonModule . register ( ) ;
7+ export default function RippleButton ( ) {
98
10- export default class RippleButton extends React . Component < any , any > {
11-
12- constructor ( props : any ) {
13- super ( props ) ;
14- }
15-
16- public render ( ) : JSX . Element {
17- return (
18- < div className = "container-center sample" >
19- < IgrButton >
20- < IgrRipple > </ IgrRipple >
21- < span > Ripple Button</ span >
22- </ IgrButton >
23- </ div >
24- ) ;
25- }
9+ return (
10+ < div className = "container-center sample" >
11+ < IgrButton >
12+ < IgrRipple > </ IgrRipple >
13+ < span > Ripple Button</ span >
14+ </ IgrButton >
15+ </ div >
16+ ) ;
2617}
2718
28- // rendering above class to the React DOM
19+ // rendering above component to the React DOM
2920const root = ReactDOM . createRoot ( document . getElementById ( 'root' ) ) ;
3021root . render ( < RippleButton /> ) ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import ReactDOM from 'react-dom/client' ;
33import './index.css' ;
4- import { IgrRipple , IgrRippleModule , IgrButton , IgrButtonModule } from 'igniteui-react' ;
4+ import { IgrRipple , IgrButton } from 'igniteui-react' ;
55import 'igniteui-webcomponents/themes/light/bootstrap.css' ;
66
7- IgrRippleModule . register ( ) ;
8- IgrButtonModule . register ( ) ;
7+ export default function RippleColor ( ) {
98
10- export default class RippleColor extends React . Component < any , any > {
11-
12- constructor ( props : any ) {
13- super ( props ) ;
14- }
15-
16- public render ( ) : JSX . Element {
17- return (
18- < div className = "container-center sample" >
19- < IgrButton >
20- < IgrRipple > </ IgrRipple >
21- < span > Ripple Button</ span >
22- </ IgrButton >
23- </ div >
24- ) ;
25- }
9+ return (
10+ < div className = "container-center sample" >
11+ < IgrButton >
12+ < IgrRipple > </ IgrRipple >
13+ < span > Ripple Button</ span >
14+ </ IgrButton >
15+ </ div >
16+ ) ;
2617}
2718
28- // rendering above class to the React DOM
19+ // rendering above component to the React DOM
2920const root = ReactDOM . createRoot ( document . getElementById ( 'root' ) ) ;
3021root . render ( < RippleColor /> ) ;
You can’t perform that action at this time.
0 commit comments