Skip to content

Commit

Permalink
Add support for React 18
Browse files Browse the repository at this point in the history
  • Loading branch information
raymond-lam committed Sep 11, 2022
1 parent 19cf9d1 commit 1a00341
Show file tree
Hide file tree
Showing 7 changed files with 5,296 additions and 5,862 deletions.
18 changes: 9 additions & 9 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions example/src/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import App from './App';
import * as serviceWorker from './serviceWorker';

import 'bootstrap/dist/css/bootstrap.min.css';

ReactDOM.render(<App />, document.getElementById('root'));
const container = document.getElementById('root');
const root = createRoot(container);

root.render(<App />);

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
testPathIgnorePatterns: ["/node_modules/", "/example/"],
setupFiles: ["./src/jestShim.js"],
setupFilesAfterEnv: ["./src/setupTests.js"],
transform: {
"\\.[jt]sx?$": "babel-jest"
Expand Down
Loading

0 comments on commit 1a00341

Please sign in to comment.