Rewrite of Day 1 to use modern React (#294)

* update to hooks

* more class to function

* cleanup

* finish ts final

* update html lesson

* add lessons page

* clean up

* move getters into context

* adding type

* fix bug

* step 5 cleanup

* init final pass

* text tweak

* fix ternaries

* readme cleanup

* fixed root readme
This commit is contained in:
Micah Godbolt
2022-01-13 09:22:50 -08:00
committed by GitHub
parent 4998c158d2
commit 7cea32428e
60 changed files with 923 additions and 929 deletions

View File

@@ -1,11 +1,9 @@
import React from 'react';
export class TodoApp extends React.Component<any, any> {
render() {
return (
<div>
<p>Hello World</p>
</div>
);
}
export const TodoApp = () => {
return (
<div>
<p>Hello World</p>
</div>
);
}