File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import CodeExampleComponent from "../Example/index.jsx";
66
77import "./style.scss" ;
88import "react-datepicker/dist/react-datepicker.css" ;
9- import { EXAMPLE_CONFIG } from ' ./config.js' ;
9+ import { EXAMPLE_CONFIG } from " ./config.js" ;
1010
1111export default class exampleComponents extends React . Component {
1212 componentDidMount ( ) {
@@ -17,7 +17,9 @@ export default class exampleComponents extends React.Component {
1717 handleAnchorClick = ( e : React . MouseEvent , id : string ) : void => {
1818 e . preventDefault ( ) ;
1919 window . history . replaceState ( null , document . title , `#${ id } ` ) ;
20- document . getElementById ( id ) ?. scrollIntoView ( { behavior : "smooth" , block : "start" } ) ;
20+ document
21+ . getElementById ( id )
22+ ?. scrollIntoView ( { behavior : "smooth" , block : "start" } ) ;
2123 } ;
2224
2325 render ( ) {
Original file line number Diff line number Diff line change 1- const calendarIconTS = `
1+ const calendarIconTS = `
22const Example = () => {
33 const [startDate, setStartDate] = useState<Date | null>(new Date());
44
Original file line number Diff line number Diff line change 11import ReactDOM from "react-dom/client" ;
22import App from "./components/App" ;
33
4- const root = ReactDOM . createRoot ( document . getElementById ( "root" ) as HTMLElement ) ;
4+ const root = ReactDOM . createRoot (
5+ document . getElementById ( "root" ) as HTMLElement ,
6+ ) ;
57root . render ( < App /> ) ;
You can’t perform that action at this time.
0 commit comments