clarify that index.temp needs to be changed to index.tsx. fixes #19

This commit is contained in:
Micah Godbolt
2019-02-26 23:51:05 -08:00
parent c1b142a684
commit 25f7577135

View File

@@ -38,11 +38,13 @@ export class App extends React.Component {
3. Controls can be self closing `<div><MyControl text='hi' /></div>`
4. You can use JavaScript inside of JSX! If you declare `const name = 'Micah';` inside the render function, you can use that variable inside of your JSX `<div>{name}</div>` or `<div><MyControl text={name} /></div>`. Works with functions, loops, conditionals as well.
### index.jsx
### index.tsx
This is the file that places your App onto the page.
```jsx
> Note that to avoid build errors, this file has been renamed to index.temp. Change the name to index.tsx.
```tsx
import React from 'react';
import ReactDOM from 'react-dom';
import { App } from './App';