Day #1 (again ._.)
What is react?
React. js is an open-source JavaScript library that is used for building user interfaces specifically for single-page applications. ... React allows developers to create large web applications that can change data, without reloading the page. The main purpose of React is to be fast, scalable, and simple.
[www.c-sharpcorner.com › article › what-and-why-reactjs | What and Why React.js - C# Corner]
Great! Just what I need it for :)
Focusing on three websites to learn:
- https://reactjs.org/tutorial/tutorial.html
- https://www.sololearn.com/Play/react
- https://www.w3schools.com/react/
A bit lost on this &+ to review:
The React team primarily recommends these solutions:
- If you’re learning React or creating a new single-page app, use Create React App.
- If you’re building a server-rendered website with Node.js, try Next.js.
- If you’re building a static content-oriented website, try Gatsby.
- If you’re building a component library or integrating with an existing codebase, try More Flexible Toolchains.
Alright ... let us go with the first since that's what I am aiming for.
Oooo Glossary! https://reactjs.org/docs/glossary.html#
Babel is the compiler most commonly used with React.
Following: Getting started with React with Create React App
npm is a package manager for the JavaScript programming language. It is the default package manager for the JavaScript runtime environment Node.js. It consists of a command line client, also called npm, and an online database of public and paid-for private packages, called the npm registry.
And success: Compiled successfully!
You can now view react-test in the browser.
Local: http://localhost:3000
Successfully have a empty game of Tic Tac Toe locally [this: https://codepen.io/gaearon/pen/oWWQNa?editors=0010] && Syntax highlighting [CHECK & DONE.-. https://babeljs.io/docs/en/editors/]
Oh, this thingy also: ESLint is a static code analysis tool for identifying problematic patterns found in JavaScript code. It was created by Nicholas C. Zakas in 2013. Rules in ESLint are configurable, and customized rules can be defined and loaded. ESLint covers both code quality and coding style issues.
What Is React?
React is a declarative, efficient, and flexible JavaScript library for building user interfaces. It lets you compose complex UIs from small and isolated pieces of code called “components”.
> > React component class, or React component type.
A component takes in parameters, called
props
(short for “properties”), and returns a hierarchy of views to display via the render
method.render
returns a React element, which is a lightweight description of what to render. Most React developers use a special syntax called “JSX” which makes these structures easier to write. mbz modification idea: When you smile or frown, you jump from box to the next.
Passing props is how information flows in React apps, from parents to children.
To “remember” things, components use state.
When you call
setState
in a component, React automatically updates the child components inside of it too.Ended: September 22nd.
Day #2 (resuming .-.)
Oops, it's been more than a week ._. I WILL GET IT DONE!
Additional Resources:
A re-introduction to JavaScript (JS tutorial)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript
Comments
Post a Comment