Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
beyaz committed Nov 26, 2024
1 parent 7b37826 commit bb29ec2
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions ReactWithDotNet.WebSite/Pages/doc/PageDocumentation_Start.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ sealed class PageDocumentation_Start : PageDocumentation
{
protected override Element CreateContent()
{


return new FlexRow(JustifyContentCenter, WidthFull)
{
new article(PaddingTopBottom(4 * rem))
Expand Down Expand Up @@ -55,7 +53,7 @@ class PrintHello extends React.Component
"""
}
},

new h2(FontSize20, FontWeight400, LineHeight32, MarginBottom(1 * rem))
{
"In ReactWithDotNet system, the c# version of this component is"
Expand Down Expand Up @@ -94,7 +92,6 @@ protected override Element render()
}
},


new h2(FontSize20, FontWeight400, LineHeight32, MarginBottom(1 * rem))
{
"Let's create simple functional component"
Expand All @@ -111,15 +108,15 @@ protected override Element render()
</div>
);
};
// sample usage
<div className="App">
<HelloWorld />
</div>
"""
}
},

new h2(FontSize20, FontWeight400, LineHeight32, MarginBottom(1 * rem))
{
"Here is c# version"
Expand All @@ -136,7 +133,7 @@ Element HelloWorld()
new h1 { "Hello World!" }
};
}
// sample usage
new div(ClassName("App"))
{
Expand All @@ -145,7 +142,7 @@ Element HelloWorld()
"""
}
},

new h2(FontSize20, FontWeight400, LineHeight32, MarginBottom(1 * rem))
{
"Here is c# async version"
Expand All @@ -161,7 +158,7 @@ async Task<string> GetMessageFromDb()
return "Hello World!";
}
async Task<Element> HelloWorld()
{
return new div(ClassName("App"))
Expand All @@ -178,15 +175,16 @@ async Task<Element> HelloWorld()
"""
}
},

new p(LineHeight28, MarginBottom(1.5 * rem))
{
"As you can see, main idea is writing react components in c# language at serverside.",
br,
"Our aim is to combine the strengths of both platforms (C# and ReactJS) to provide an easier web development environment."
},
"Our aim is to combine the strengths of both platforms (C# and ReactJS) to provide an easier web development environment.",
br,
"You dont need to import or compile any js library. All you need to reference ReactWithDotNet.dll to your .net core webapi project."
}
}
};

}
}

0 comments on commit bb29ec2

Please sign in to comment.