Skip to content

Instantly share code, notes, and snippets.

@yigith
yigith / react-checklist-en.md
Last active January 5, 2024 14:55 — forked from marko-knoebl/react-checklist-en.md
A checklist for learning React - Fork it and start ticking off topics!

React topics checklist

A checklist for learning React - Fork it and start ticking off topics!

React fundamentals

  • use-cases of React
  • JavaScript basics for React
    • immutability / data management without mutations
  • updating properties of objects
@yigith
yigith / HomeController.cs
Created December 25, 2019 13:52 — forked from pauldotknopf/HomeController.cs
Render .NET Core ASP.NET MVC ViewComponent to string from controller
public class HomeController : Controller
{
public async Task<string> RenderViewComponent(string viewComponent, object args)
{
var sp = HttpContext.RequestServices;
var helper = new DefaultViewComponentHelper(
sp.GetRequiredService<IViewComponentDescriptorCollectionProvider>(),
HtmlEncoder.Default,
sp.GetRequiredService<IViewComponentSelector>(),