📺 YouTube Live: https://youtu.be/7hC0HpkBw8g
We will be converting a jQuery-based Kintone Plug-in to a React version.
Specifically, we will be focusing on the Plug-in's config
settings page in this episode.
Steps:
- Create React App
- Simplifying the boilerplate code
- Getting the original settings page code
- Setup HTML Rendering
npm run build
Table-Utility-Plug-in/blob/main/1_Starting_Point/src/js/config.js
Command to create a sample React App to get you started with a React project
npx create-react-app
Table-Utility-Plug-in/1_Starting_Point/src/css/
React.StrictMode is a tool for highlighting potential problems in an application. Strict mode checks are run in development mode only; they do not impact the production build.
Moved config.html --> App.js
We want main.[hash].chunk.js after the npm run build
command
Create React App Doc | Creating a Production Build https://create-react-app.dev/docs/production-build/
How do I add CSS classes to components?
Pass a string as the className prop