diff --git a/src/br-demo.tsx b/src/br-demo.tsx
new file mode 100644
index 0000000..c4251a4
--- /dev/null
+++ b/src/br-demo.tsx
@@ -0,0 +1,44 @@
+///
+import React from 'react';
+import { createContainer } from './reconciler';
+
+// Demo showcasing
tag support
+const BrDemo: React.FC = () => {
+ return (
+ <>
+ Line Break Demo
+
+
+ This demonstrates the new <br /> tag support.
+
+
+ Benefits:
+
+ • Cleaner JSX syntax
+
+ • More intuitive for React developers
+
+ • No more {'\\n'} strings
+
+
+ Example Usage:
+
+
{`Title
+
+Subtitle
+
+
+Content here...`}
+ >
+ );
+};
+
+// Create container and render
+const { render, container } = createContainer();
+render();
+
+// Log the output
+setTimeout(() => {
+ console.log('Line break demo output:');
+ console.log(JSON.stringify(container.root, null, 2));
+}, 0);
\ No newline at end of file
diff --git a/src/example-bot.tsx b/src/example-bot.tsx
index 473a3da..ea820ea 100644
--- a/src/example-bot.tsx
+++ b/src/example-bot.tsx
@@ -9,9 +9,11 @@ const CounterApp = () => {
return (
<>
🔢 Counter Bot
- {'\n\n'}
+
+
Current count: {count}
- {'\n\n'}
+
+
@@ -30,18 +32,19 @@ const TodoApp = () => {
return (
<>
📝 Todo List
- {'\n\n'}
+
+
{todos.length === 0 ? (
No todos yet!
) : (
todos.map((todo, i) => (
{showCompleted ? {todo} : todo}
- {'\n'}
+
))
)}
- {'\n'}
+