UNPKG

@gavbarosee/react-kickstart

Version:

A modern CLI tool for creating React applications with various frameworks

19 lines (16 loc) 581 B
import { setupReactRouter } from "./react-router/index.js"; /** * Sets up routing based on the framework * @param {string} projectPath - Path to the project root * @param {Object} userChoices - User configuration options * @param {string} framework - The framework being used * @returns {void} */ export function setupRouting(projectPath, userChoices, framework) { if (!userChoices.routing || userChoices.routing === "none") return; switch (userChoices.routing) { case "react-router": setupReactRouter(projectPath, userChoices, framework); break; } }