diff --git a/README.md b/README.md index 01abf1bb..46c51798 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ import { render, createPortal, useStyle } from '@dark-engine/platform-browser'; ``` ## Shut up and show me your code! -For example this is timer component: +For example this is a timer component: ```tsx import { @@ -126,7 +126,7 @@ const App = createComponent(() => { render(, document.getElementById('root')); ``` -Part of this code can be rewritten without using JSX like this (Flutter style:) +Part of this code can be rewritten without using JSX like this: ```tsx const div = props => View({ ...props, as: 'div' }); @@ -172,7 +172,7 @@ This is the function you need to enable JSX support and write in a React-like st ``` ```tsx -render(

I'm Dark

, document.getElementById('root')); +render(
I'm Dark
, document.getElementById('root')); ``` #### View, Text, Comment @@ -273,7 +273,7 @@ or without Fragment ```tsx const List = createComponent(({ items }) => { - return albums.map(x =>
{x.title}
); + return items.map(x =>
{x.title}
); }); ```