Coding Daily 1️⃣ Sum of Digits (Recursive) Question: Write a recursive function to find the sum of digits of a given number. Example: Input: 123 Output: 6 // (1 + 2 + 3)
STEPS TO CREATE REACT APPLICATION : * Open VS code * Create a new folder (practice) * Open terminal and check the node version by the cmd node -v * To create a react app by the cmd npx create-react-app practicedemo * Then change the directory by the cmd cd model in terminal. * Now we can see the above packages in our application. * To run your react application by the cmd npm start * Then you can the default application of react like the above one. * Do you what to stop running application by press ctrl+c * Then go to Apps.js file and App.css delete the default code and your own. -----------------------------------------------------------------------------------------------------------------------------
Comments
Post a Comment