Coder Social home page Coder Social logo

react-gists's Introduction

react-gists

https://reactjs.org/ gists, examples, demos, etc

React Docs

Procedure

  1. Follow the installation instructions for Create React App to make a new project:

    1. cd ..../development
  2. mkdir react 3. cd react

  3. npx create-react-app tic-tac-toe this is the “Zero-Config Setup. (if you want to customize this configuration you can do “npm run eject”) It installs:

    1. light Dev Server

    2. Webpack

    3. Babel, etc

  1. cd tic-tac-toe

  2. npm start

  3. Note: When you’re ready to deploy to production, running npm run build will create an optimized build of your app in the build folder. You can learn more about Create React App from its README and the User Guide.

##Developer Tools

  1. Installing IDE using VSC (Visual Studio Code)

    1. install VSC’s extension Simple React Snippets
    2. OPTION: install VSC’s extension Prettier - Code formatter
      1. open VSC’s Code/Preferences/Settings and in search type “on save” and you will find “Code Actions On Save“, then open the suggested option “Edit in settings.json” add the following entry in the json "editor.formatOnSave": true
    3. (https://babeljs.io/docs/en/editors/#visual-studio-code) Babel- Syntax Highlighting
      1. Install the sublime-babel-vscode extension and follow the instructions.
      2. There seems to be one other way to get the syntax highlighting working and you can learn more about it in the Visual Studio Code docs.
    4. VS Code supports JSX and React Native. You will get IntelliSense for React/JSX and React Native from automatically downloaded type declaration (typings) files from the npmjs type declaration file repository. Additionally, you can install the popular React Native extension (INSTALL IT!) from the Marketplace.
    5. To enable ES6 import statements for React Native, you need to set the allowSyntheticDefaultImports compiler option to true.
  2. The React Devtools extension for Chrome and Firefox lets you inspect a React component tree with your browser’s developer tools.

    1. so add the extension: https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en

    2. The React DevTools let you check the props and the state of your React components.

      After installing React DevTools, you can right-click on any element on the page, click “Inspect” to open the developer tools, and the React tab will appear as the last tab to the right.

About

  1. React can also render on the server using Node and power mobile apps using React Native.

Tutorials

  1. https://reactjs.org/tutorial/tutorial.html
  2. https://codepen.io/gaearon/pen/gWWZgR?editors=0010
  3. https://reactjs.org/docs/hello-world.html
  4. https://www.youtube.com/watch?v=Ke90Tje7VS0
  5. https://www.w3schools.com/whatis/whatis_react.asp
  6. https://jobs.lever.co/rangle/d221e8e1-47f4-4dd6-83d0-bb53951f3753
  7. https://www.edureka.co/blog/interview-questions/react-interview-questions/
  8. https://reactjs.org/docs/glossary.html#single-page-application
  9. https://facebook.github.io/jsx/

##Tools

  1. https://babeljs.io/docs/en/index.html 2. Babel can convert JSX syntax! Check out our React preset to get started.
  2. https://facebook.github.io/jsx/
  3. https://reactjs.org/docs/create-a-new-react-app.html#create-react-app
  4. https://webpack.js.org/

Additional Support

  1. If you get stuck, check out the community support resources. In particular, Reactiflux Chat is a great way to get help quickly. If you don’t receive an answer, or if you remain stuck, please file an issue, and we’ll help you out.

React PWAs

  1. https://developers.google.com/web/progressive-web-apps/
  2. https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
  3. https://www.gistia.com/angular-progressive-web-app-native/

Angular to React

  1. https://dev.to/httpjunkie/angular-to-react-in-30-days-p5k
  2. https://medium.com/javascript-in-plain-english/react-to-angular-some-helpful-tips-for-making-the-transition-c8463619e374
  3. https://www.toptal.com/react/why-did-i-switch-from-angularjs-to-react
  4. https://itnext.io/is-angular-dying-because-of-react-a8e885f09421
  5. https://buttercms.com/blog/migrating-from-angularjs-to-react

Using React Components in Angular

  1. https://github.com/ngReact/ngReact
  2. https://sdk.gooddata.com/gooddata-ui/docs/4.1.1/ht_use_react_component_in_angular_2.x.html 3. https://github.com/gooddata/gooddata-react-components
  3. https://github.com/Cha-OS/ng2-redux

Testing

  1. https://www.fullstackreact.com/30-days-of-react/day-22/
  2. https://medium.com/dailyjs/testing-react-an-overview-56204839cbad
  3. https://medium.com/welldone-software/an-overview-of-javascript-testing-in-2019-264e19514d0a
  4. https://raygun.com/blog/javascript-unit-testing-frameworks/
  5. https://kentcdodds.com/blog/write-tests

Prop-drilling

  1. https://kentcdodds.com/blog/prop-drilling
    1. Use React's Context API for things that are truly necessary deep in the react tree. They don't have to be things you need everywhere in the application (you can render a provider anywhere in the app). This can really help avoid some issues with prop drilling. It's been noted that context is kinda taking us back to the days of global variables. The difference is that because of the way the API was designed, you can still statically find the source of the context as well as any consumers with relative ease.

react-gists's People

Contributors

bardiaalavi-2020 avatar dependabot[bot] avatar mprinc avatar sinisarudan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.